Code Monkey home page Code Monkey logo

cargo-packaging's Issues

Define as multiline.

To be on the safe side,

fedora: %if %{defined fedora} %global debug_package %{nil} %endif

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.

Impossible to disable cargo-auditable

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.