Update nom to ~3.0.
Prefix dependencies with ~, which will allow for newer patch
versions only. Minor version updates should get a test before
using.
Remove Cargo.lock from the repo, but still generate as part
of the vendoring process for release builds. This will ensure
that all users of a particular distribution tarball will be
linking against the same Rust dependencies.
!Cargo.toml.in
/.cargo/config
/Cargo.toml
+/Cargo.lock
/target
/vendor
/gen
+++ /dev/null
-[root]
-name = "suricata"
-version = "4.0.0-dev"
-dependencies = [
- "libc 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)",
- "nom 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
-]
-
-[[package]]
-name = "libc"
-version = "0.2.21"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-
-[[package]]
-name = "nom"
-version = "2.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-
-[metadata]
-"checksum libc 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)" = "88ee81885f9f04bff991e306fea7c1c60a5f0f9e409e99f6b40e3311a3363135"
-"checksum nom 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e5d4598834859fedb9a0a69d5b862a970e77982a92f544d547257a4d49469067"
lua = []
[dependencies]
-nom = "2.1.0"
-libc = "0.2.0"
+nom = "~3.0"
+libc = "~0.2.0"
EXTRA_DIST = Cargo.toml \
- Cargo.lock \
src \
.cargo/config.in \
gen-c-headers.py \
gen/c-headers
if HAVE_RUST
-EXTRA_DIST += vendor
+EXTRA_DIST += Cargo.lock \
+ vendor
endif
if HAVE_RUST_VENDOR
check:
cd $(top_srcdir)/rust && CARGO_TARGET_DIR=$(abs_builddir)/target \
cargo test
+
+Cargo.lock: Cargo.toml
+ cargo update
else
all-local clean-local check:
endif