Richard W.M. Jones
c2c7dfd66b
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-12-09 13:54:15 +00:00
Richard W.M. Jones
637f193189
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-12-09 13:54:15 +00:00
Richard W.M. Jones
d01ce08218
rust: Fix deprecated use of panic!(format!(...))
...
warning: panic message is not a string literal
--> src/bin/event_leak.rs:9:30
|
9 | Err(e) => panic!(format!(" could not create handle {:?}", e)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(non_fmt_panic)]` on by default
= note: this is no longer accepted in Rust 2021
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2021-05-05 12:57:51 +01:00
Dmitry Tantsur
fe52d9fd0c
rust: fix a typo in the crates.io link
2020-10-28 10:34:04 +00: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
Hiroyuki Katsura
212f1a5f71
Rust bindings: Make it able to publish this crate
...
I added
- data required to publish this crate to `crates.io`.
- README.md which contains the details of how to publish this crate.
2019-08-12 20:34:47 +01:00
Hiroyuki Katsura
3f7ff1b068
Rust bindings: Implement callback handlers
...
This patch includes:
- Event callback handlers
- Tests related to events(410-430)
src/bin/event.rs and src/bin/event_leak.rs
are the PoCs that Boxes related to callbacks are
not leaked.
2019-08-06 14:54:04 +01:00
Hiroyuki Katsura
bb0cb3e730
Rust bindings: Add Event structs, Clarify Handle lifetime
...
Without clarifying handle's lifetime, it is unable
to see how long the callbacks which the handle
owns will live. Then, Rust compiler will infer
that the callbacks have 'static lifetime. It is
not convenient for users.
2019-08-06 14:54:04 +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
Richard W.M. Jones
b484ca4da1
rust: Move .gitignore to top level file and add extra files.
2019-07-29 12:12:14 +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