firstyear / cargo-packaging Goto Github PK
View Code? Open in Web Editor NEWCargo Packaging macros
License: Mozilla Public License 2.0
Cargo Packaging macros
License: Mozilla Public License 2.0
To be on the safe side,
Line 2 in aa84b32
should be split as multiline like:
%if %{defined fedora}
%global debug_package %{nil}
%endif
I'm actually unsure of effect as single line, but someone somewhere will nitpick it as single-line at least.
Hi,
There is a known issue with cargo-auditable that affects certain projects.
[ 164s] thread 'main' panicked at 'cargo metadata failure: error: Package `wasmtime-wasi v12.0.0 (/home/abuild/rpmbuild/BUILD/wasmtime-12.0.0/crates/wasi)` does not have feature `cap-std`. It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.
There's no workaround for the issue above AFAIK, and it is not possible to disable cargo-auditable if using cargo macros.
Setting RUSTC_WRAPPER
to any value causes the build to fail, this is the only variable that enables or disables cargo-auditable.
[ 6s] + export RUSTC_WRAPPER=rustc
[ 6s] + RUSTC_WRAPPER=rustc
[ 6s] + unset LIBSSH2_SYS_USE_PKG_CONFIG
[ 6s] + '[' -z rustc ']'
[ 6s] + CARGO_FEATURE_VENDORED=1
[ 6s] + RUSTFLAGS=' -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2 -C incremental=false'
[ 6s] + /usr/bin/cargo build -j16 --offline --release -p wasmtime-c-api
[ 6s] error: failed to run `rustc` to learn about target-specific information
[ 6s]
[ 6s] Caused by:
[ 6s] process didn't exit successfully: `rustc rustc - --crate-name ___ --print=file-names -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2 -C incremental=false --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1)
It would be nice to have a way to disable it, for now, the only solution is to call cargo directly and ignore the macros.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.