rust-analyzer is happier with this because it understands
the project structure out of the box.
We aren't actually again adding a dependency on Rust/cargo in the core,
this is only used to make `cargo build` work out of the box to build
the Rust test code.
--- /dev/null
+# Today, this repository only uses Rust for tests. This
+# toplevel Cargo.toml helps tools like rust-analyzer understand
+# that this project contains Rust code. We don't otherwise currently
+# use `cargo` for any part of the core build.
+[workspace]
+members = ["tests/inst"]
# Generated by coreos-assembler build-fast and kola
GITIGNOREFILES += fastbuild-*.qcow2 _kola_temp/
+# Rust stuff
+GITIGNOREFILES += target/ Cargo.lock
+
SUBDIRS += .
if ENABLE_GTK_DOC
+++ /dev/null
-target/
-Cargo.lock
install:
install -D -m 0644 -t $(KOLA_TESTDIR) $(LIBSCRIPTS)
for x in $(TESTDIRS); do rsync -rlv ./$${x} $(KOLA_TESTDIR)/; done
- install -D -m 0755 -t $(KOLA_TESTDIR)/nondestructive-rs ../inst/target/release/ostree-test
+ install -D -m 0755 -t $(KOLA_TESTDIR)/nondestructive-rs ../../target/release/ostree-test
install -D -m 0644 destructive-stamp.ign $(KOLA_TESTDIR)/destructive-rs/config.ign
./install-wrappers.sh destructive-list.txt $(KOLA_TESTDIR)/destructive-rs