Commit Graph

74 Commits

Author SHA1 Message Date
Harsh Shandilya b51d35aaea
Add IntelliJ stuff
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-31 00:14:07 +05:30
dependabot-preview[bot] 797101d610 Bump regex from 1.3.5 to 1.3.6
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.5 to 1.3.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.5...1.3.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-25 14:39:23 +00:00
Harsh Shandilya bf8b5d2d5c
CI: Disable nightly testing
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-25 19:55:33 +05:30
dependabot-preview[bot] 08e7e37da2 Bump ureq from 0.11.4 to 0.12.0
Bumps [ureq](https://github.com/algesten/ureq) from 0.11.4 to 0.12.0.
- [Release notes](https://github.com/algesten/ureq/releases)
- [Commits](https://github.com/algesten/ureq/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 08:42:47 +00:00
dependabot-preview[bot] 94ba8b95bb Bump ureq from 0.11.3 to 0.11.4
Bumps [ureq](https://github.com/algesten/ureq) from 0.11.3 to 0.11.4.
- [Release notes](https://github.com/algesten/ureq/releases)
- [Commits](https://github.com/algesten/ureq/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-13 08:16:54 +00:00
dependabot-preview[bot] 9abc91b440 Bump regex from 1.3.4 to 1.3.5
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.4...1.3.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-13 08:12:38 +00:00
dependabot-preview[bot] 7061956c8b Bump regex from 1.3.3 to 1.3.4
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.3...1.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-31 07:54:29 +00:00
dependabot-preview[bot] 5dbf6256e9 Bump regex from 1.3.1 to 1.3.3 (#5)
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.1 to 1.3.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.1...1.3.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-10 13:15:32 +05:30
dependabot-preview[bot] 927e96bb99 Bump ureq from 0.11.2 to 0.11.3 (#4)
Bumps [ureq](https://github.com/algesten/ureq) from 0.11.2 to 0.11.3.
- [Release notes](https://github.com/algesten/ureq/releases)
- [Commits](https://github.com/algesten/ureq/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-07 14:12:57 +05:30
Harsh Shandilya 20eb15cc44
github: Install cargo-fmt using rustup in CI
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2020-01-07 13:59:11 +05:30
Harsh Shandilya a521b8695b
github: Validate codestyle in CI
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-28 18:05:51 +05:30
Harsh Shandilya 5c8c05fcd4
Bump version
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-27 14:34:25 +05:30
Harsh Shandilya 50ce7797ce
Add Rust beta to CI
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-25 13:54:21 +05:30
Harsh Shandilya 448c0ac552
Switch from reqwest to ureq
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-25 13:52:06 +05:30
Harsh Shandilya 846039ab8b
Bump reqwest from 0.9.22 to 0.9.24 (#3)
Bump reqwest from 0.9.22 to 0.9.24
2019-12-12 12:47:19 +05:30
dependabot-preview[bot] 61ae53c480
Bump reqwest from 0.9.22 to 0.9.24
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.9.22 to 0.9.24.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/v0.9.24/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.9.22...v0.9.24)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-12 07:12:17 +00:00
Harsh Shandilya 388fe4da75
Bump version
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-11-06 14:41:43 +05:30
Harsh Shandilya 8c4b879833
Update dependencies
cc v1.0.46 -> v1.0.47
hermit-abi v0.1.3
maybe-uninit v2.0.0
memoffset v0.5.1 -> v0.5.2
num_cpus v1.10.1 -> v1.11.0
pkg-config v0.3.16 -> v0.3.17
security-framework v0.3.1 -> v0.3.2
security-framework-sys v0.3.1 -> v0.3.2
smallvec v0.6.11 -> v0.6.13
synstructure v0.12.1 -> v0.12.2

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-11-06 14:39:21 +05:30
Harsh Shandilya 038ebff13e
Add remaining tests
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-29 19:31:09 +05:30
Harsh Shandilya 87ea0cc2d4
formatters: Fix wrong DNS type in unbound formatter
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-29 19:30:09 +05:30
Harsh Shandilya a3ef02ab43
github: Run tests in CI
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-29 19:14:28 +05:30
Harsh Shandilya 6467320540
Add dnsmasq formatter tests
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-29 19:12:08 +05:30
Harsh Shandilya f4c00d3d65
Break out API for testability
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-29 18:40:38 +05:30
Harsh Shandilya 9797b4e837
Update dependencies
autocfg v0.1.6 -> v0.1.7
c2-chacha v0.2.2 -> v0.2.3
getrandom v0.1.12 -> v0.1.13
indexmap v1.2.0 -> v1.3.0
miniz_oxide v0.3.3 -> v0.3.5
openssl-sys v0.9.51 -> v0.9.52
ppv-lite86 v0.2.5 -> v0.2.6
proc-macro2 v1.0.5 -> v1.0.6
serde v1.0.101 -> v1.0.102
serde_derive v1.0.101 -> v1.0.102
smallvec v0.6.10 -> v0.6.11
syn v1.0.5 -> v1.0.7

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-29 10:26:32 +05:30
Harsh Shandilya 5aab19a917
Add readme to Cargo.toml
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-18 16:13:13 +05:30
Harsh Shandilya 372e158ef3
Bump version
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-18 16:11:01 +05:30
Harsh Shandilya ca8bb536ed
Update dependencies
backtrace v0.3.38 -> v0.3.40
backtrace-sys v0.1.31 -> v0.1.32
cc v1.0.45 -> v1.0.46
libc v0.2.64 -> v0.2.65

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-18 15:54:52 +05:30
Harsh Shandilya b79104de53
Update dependencies
http v0.1.18 -> v0.1.19
libc v0.2.62 -> v0.2.64
ryu v1.0.1 -> v1.0.2

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-16 21:44:14 +05:30
Harsh Shandilya 3026b1e3ea
Update bitflags to 1.2.1
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-14 15:45:41 +05:30
Harsh Shandilya 4d1b8ca303
Update dependencies
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-12 17:31:20 +05:30
Harsh Shandilya 5248634c2b
Rename GitHub workflow
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-12 17:24:37 +05:30
Harsh Shandilya ee81a68733
Publish to crates.io
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-12 17:22:18 +05:30
Harsh Shandilya 33c8ceee2e
Add publishing related metadata
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-12 17:17:13 +05:30
Harsh Shandilya bcb580ddec
Update README
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-12 17:14:54 +05:30
Harsh Shandilya d90134fb26
Remove unnecessary print and use eprintln for error
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-12 17:06:39 +05:30
Harsh Shandilya 8090a5a823
Directly initialize sources HashMap
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-12 17:05:30 +05:30
Harsh Shandilya 38eeb68903
Update sources_file mapping
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-12 17:02:07 +05:30
Harsh Shandilya a2d1ef95ab
Reformat adnix configuration
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-12 17:00:02 +05:30
Harsh Shandilya 42944f5672
github: Also check PRs
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-12 16:57:11 +05:30
Harsh Shandilya 4af559da3d
Allow supplying sources from the command line (#2)
Allow supplying sources from the command line

Fixes #1
2019-10-12 16:56:27 +05:30
Michel Kansou ed22f66110 add clap yaml feature, update command line, add parsing sources file feature 2019-10-12 13:14:58 +02:00
Harsh Shandilya 642d5e0333
Dependency updates
Updating arrayvec v0.4.11 -> v0.4.12
Updating iovec v0.1.2 -> v0.1.4
Updating nodrop v0.1.13 -> v0.1.14
Updating openssl-sys v0.9.50 -> v0.9.51
Updating reqwest v0.9.21 -> v0.9.22

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-10 20:15:36 +05:30
Harsh Shandilya 675666ce1d
Check-in Cargo.lock
I was mistaken earlier, libraries should _not_ be tracking these and executables should.

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-10 15:57:14 +05:30
Harsh Shandilya 77ce77066a
Rename to just adnix
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-10 14:38:41 +05:30
Harsh Shandilya aa712ea5ce
Drop TDD related changes
This code's not gonna be testable anytime soon.

Revert "source: Move download function out for test override"

This reverts commit 04f59fd536.

Revert "Add sample hosts file as test data"

This reverts commit ac6ef85c78.
2019-10-09 21:55:50 +05:30
Harsh Shandilya 9e5d6d430d
Pass arguments as list
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-09 13:16:10 +05:30
Harsh Shandilya f041b0de39
Drop single-case match
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-09 13:08:20 +05:30
Harsh Shandilya c77c7a1fbf
Fix clippy warning
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-09 13:07:35 +05:30
Harsh Shandilya 04f59fd536
source: Move download function out for test override
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-09 12:55:28 +05:30
Harsh Shandilya 0be05f81c0
Implement IPV{4,6} address override
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-09 00:11:02 +05:30