The documentation states that only `cargo update` and `cargo install`
should update the dependencies present in the `Cargo.lock` file, but
it still seems safer to explictly ask `cargo build` to not update them.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
all install: libdnsdist_rust.a
libdnsdist_rust.a: src/lib.rs src/helpers.rs Cargo.toml Cargo.lock
- SYSCONFDIR=$(sysconfdir) $(CARGO) build --release $(RUST_TARGET) --target-dir=$(builddir)/target --manifest-path ${srcdir}/Cargo.toml
+ SYSCONFDIR=$(sysconfdir) $(CARGO) build --release $(RUST_TARGET) --target-dir=$(builddir)/target --manifest-path ${srcdir}/Cargo.toml --locked
cp target/release/libdnsdist_rust.a libdnsdist_rust.a
cp target/cxxbridge/dnsdist-rust/src/lib.rs.h lib.rs.h
cp target/cxxbridge/rust/cxx.h cxx.h
mytarget=${CARGO_TARGET_DIR-target}
#echo "mytarget=${mytarget}"
-$CARGO build --release $RUST_TARGET --target-dir=$builddir/target --manifest-path $srcdir/Cargo.toml
+$CARGO build --release $RUST_TARGET --target-dir=$builddir/target --manifest-path $srcdir/Cargo.toml --locked
cp -p target/$RUSTC_TARGET_ARCH/release/libdnsdist_rust.a $builddir/dnsdist-rust-lib/rust/libdnsdist_rust.a