diff options
author | Daniel <kingdread@gmx.de> | 2020-05-03 12:18:01 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-05-03 12:18:01 +0200 |
commit | 9fa6558e71a86e5a58445f1967025ac3511abe86 (patch) | |
tree | 8ab3e0837d433148b78adfa6280475834b20a162 | |
parent | db1f38ca7c1b269ee08c2d56788dafc154cffb5b (diff) | |
download | raidgrep-9fa6558e71a86e5a58445f1967025ac3511abe86.tar.gz raidgrep-9fa6558e71a86e5a58445f1967025ac3511abe86.tar.bz2 raidgrep-9fa6558e71a86e5a58445f1967025ac3511abe86.zip |
evtclib: include as a dependency, not submodule
With evtclib being on crates.io now (and generally, being available
publicly through git), there is no longer a need to have a copy of the
evtclib repository in this repository. The main reason was that evtclib
was private when I started it, so the easiest way to include it was
through a git submodule. That reason is no longer valid.
If we really *need* to use the git version, it is also better to just
point Cargo to the repository and let it deal with keeping the
repository up-to-date, rather than using git submodules.
This commit also updates Cargo.lock, so there is a bit of noise from
also adding ctrlc as a dependency.
-rw-r--r-- | Cargo.lock | 17 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
m--------- | evtclib | 0 | ||||
-rw-r--r-- | src/main.rs | 6 |
4 files changed, 19 insertions, 6 deletions
@@ -282,6 +282,15 @@ dependencies = [ ] [[package]] +name = "ctrlc" +version = "3.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "nix 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] name = "diff" version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -355,7 +364,8 @@ dependencies = [ [[package]] name = "evtclib" -version = "0.2.0" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -760,8 +770,9 @@ dependencies = [ "anyhow 1.0.28 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", "colored 1.9.3 (registry+https://github.com/rust-lang/crates.io-index)", + "ctrlc 3.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "evtclib 0.2.0", + "evtclib 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "humantime 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "itertools 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "lalrpop 0.18.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1578,6 +1589,7 @@ dependencies = [ "checksum crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace" "checksum crossbeam-queue 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c695eeca1e7173472a32221542ae469b3e9aac3a4fc81f7696bcad82029493db" "checksum crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" +"checksum ctrlc 3.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "7a4ba686dff9fa4c1c9636ce1010b0cf98ceb421361b0bb3d6faeec43bd217a7" "checksum diff 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499" "checksum digest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" "checksum dirs 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "3fd78930633bd1c6e35c4b42b1df7b0cbc6bc191146e512bb3bedf243fcc3901" @@ -1587,6 +1599,7 @@ dependencies = [ "checksum docopt 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7f525a586d310c87df72ebcd98009e57f1cc030c8c268305287a476beb653969" "checksum either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3" "checksum ena 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8944dc8fa28ce4a38f778bd46bf7d923fe73eed5a439398507246c8e017e6f36" +"checksum evtclib 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4d744b9f556e91a20ba64767ef4ae286911fa2f4ed9b33361e6c7b8ac6d77a4a" "checksum fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" "checksum fixedbitset 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "86d4de0081402f5e88cdac65c8dcdcc73118c1a7a465e2a05f0da05843a8ea33" "checksum flate2 1.0.14 (registry+https://github.com/rust-lang/crates.io-index)" = "2cfff41391129e0a856d6d822600b8d71179d46879e310417eb9c762eb178b42" @@ -12,7 +12,7 @@ repository = "https://gitlab.com/dunj3/raidgrep" lto = true [dependencies] -evtclib = { path = "evtclib" } +evtclib = "0.3.0" regex = "1" structopt = "0.3" walkdir = "2" diff --git a/evtclib b/evtclib deleted file mode 160000 -Subproject 6288027ab8b5e17c9dee30e97042198cfe66646 diff --git a/src/main.rs b/src/main.rs index 61c332e..fd3399b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -457,13 +457,13 @@ fn get_guild_mapping(log: &Log) -> HashMap<u64, String> { .filter_map(|event| { if let EventKind::Guild { source_agent_addr, - ref api_guild_id, + api_guild_id, .. - } = event.kind + } = event.kind() { api_guild_id .as_ref() - .map(|api_id| (source_agent_addr, api_id.clone())) + .map(|api_id| (*source_agent_addr, api_id.clone())) } else { None } |