Richard W.M. Jones
c7d54697ca
rust: Don't fail 'make distclean' if cargo clean fails
...
It fails when run twice with:
../run cargo clean
error: could not find `Cargo.toml` in `/home/rjones/d/libguestfs/rust` or any parent directory
As this is an optional step don't fail here.
2023-02-16 11:58:30 +00:00
Richard W.M. Jones
760d11ecfa
rust: Use distclean to clean cache rather than make clean
...
Actually cargo caches downloaded libraries. The previous change
caused cargo to download and rebuild these after make clean which is
overly aggressive. Use make distclean instead.
Updates: commit 1834f19d20
2021-10-21 14:36:41 +01:00
Richard W.M. Jones
1834f19d20
rust: Wire up make clean so it runs cargo clean
...
Before this commit, after make clean:
$ du -sh rust
641M rust
After:
776K rust
2021-10-20 17:55:19 +01:00
Pino Toscano
062e1bd26e
rust: fix list of generator-built files
...
src/lib.rs is not created by the generator, while src/guestfs.rs is.
2019-12-12 18:01:32 +01:00
Pino Toscano
d44ef6aa50
rust: fix path to lib.rs
...
It is a source file, so explicitly look for it in the source directory.
2019-12-12 18:01:32 +01:00
Pino Toscano
323909d92e
build: stop shipping files generated by configure
...
They will be generated by configure.
2019-12-12 18:01:32 +01:00
Richard W.M. Jones
bbe4490795
rust: Don't add Cargo.lock to EXTRA_DIST.
...
It's a file generated by cargo. If cargo is not installed then this
breaks ‘make dist’.
2019-09-02 19:28:30 +01:00
Richard W.M. Jones
3f8609434f
rust: Add more source files to EXTRA_DIST.
...
Fixes commit 3f7ff1b068 .
2019-09-02 10:01:05 +01:00
Richard W.M. Jones
ffd0b5484d
Revert "rust: Add missing file to EXTRA_DIST."
...
This reverts commit 9a6d162852 .
(This file was later removed in
commit 3f7ff1b0689408695d21b4c50384fa24b47e5e8f.)
2019-09-02 10:01:05 +01:00
Richard W.M. Jones
52c7e787d2
rust: Add README.md to EXTRA_DIST.
...
Fixes previous commit.
2019-08-12 20:36:28 +01:00
Richard W.M. Jones
9a6d162852
rust: Add missing file to EXTRA_DIST.
2019-07-29 12:22:20 +01:00
Richard W.M. Jones
94f20e2511
rust: Remove rust/.gitignore from EXTRA_DIST.
...
Fixes commit b484ca4da1 .
2019-07-29 12:18:17 +01:00
Hiroyuki_Katsura
3bbd00c83e
Rust bindings: Add Rust bindings
...
This patch includes Actions and their tests. Missing:
- Events
- Examples
Rust bindings: Add create / close functions
Rust bindings: Add 4 bindings tests
Rust bindings: Add generator of structs
Rust bindings: Add generator of structs for optional arguments
Rust bindings: Add generator of function signatures
Rust bindings: Complete actions
Rust bindings: Fix memory management
Rust bindings: Add bindtests
Rust bindings: Add additional 4 bindings tests
Rust bindings: Format test files
Rust bindings: Incorporate bindings to build system
2019-07-29 10:28:31 +01:00