Comments (3)
The following command in build process will not work:
cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features 'python pyo3/extension-module' --no-default-features -- --crate-type cdylib
What's the error message?
from setuptools-rust.
With following commands:
$ cd examples/html-py-ever
$ rustup default nightly
$ rustc --version
rustc 1.70.0-nightly (478cbb42b 2023-03-28)
$ vi Cargo.toml
# Here, remove line 'crate-type = ["dyllib"]'
$ cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features pyo3/extension-module -- --crate-type cdylib
I get
Compiling html-py-ever v0.1.0 (/home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever)
Running `rustc --crate-name html_py_ever --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=159 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --crate-type cdylib -C metadata=46a88f8ad81bd4e9 -C extra-filename=-46a88f8ad81bd4e9 --out-dir /home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever/target/release/deps -L dependency=/home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever/target/release/deps --extern kuchiki=/home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever/target/release/deps/libkuchiki-17d7bf24f9e68077.rmeta --extern pyo3=/home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever/target/release/deps/libpyo3-d3ecaf764808e42c.rmeta --extern tendril=/home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever/target/release/deps/libtendril-e113a85045e3a1e9.rmeta`
error: crate `pyo3` required to be available in rlib format, but was not found in this form
error: crate `tendril` required to be available in rlib format, but was not found in this form
error: crate `kuchiki` required to be available in rlib format, but was not found in this form
error: could not compile `html-py-ever` (lib) due to 3 previous errors
Caused by:
process didn't exit successfully: `rustc --crate-name html_py_ever --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=159 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --crate-type cdylib -C metadata=46a88f8ad81bd4e9 -C extra-filename=-46a88f8ad81bd4e9 --out-dir /home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever/target/release/deps -L dependency=/home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever/target/release/deps --extern kuchiki=/home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever/target/release/deps/libkuchiki-17d7bf24f9e68077.rmeta --extern pyo3=/home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever/target/release/deps/libpyo3-d3ecaf764808e42c.rmeta --extern tendril=/home/yasuo/ghq/github.com/PyO3/setuptools-rust/examples/html-py-ever/target/release/deps/libtendril-e113a85045e3a1e9.rmeta` (exit status: 1)
from setuptools-rust.
Actually I cannot figure out which change on rustc break the compatibility.
(it occurs between ff4b772
... 8a73f50
)
Recently --crate-type
option is implemented in cargo
, so I think it is safer to use --crate-type
option on cargo.
from setuptools-rust.
Related Issues (20)
- 1.5.x sdist no longer contains examples, docs, and tests HOT 5
- build fails with "error: Rust build failed; unable to find any build artifacts" HOT 6
- Is there a way to trigger `release` target build for `build_ext --inplace` command? HOT 3
- setuptools-rust fails to cross-compile cryptography using crossenv HOT 10
- Failed to build on MacOs 13.0.1,setuptools_rust HOT 1
- can I build an `.so` without the target between the module name and the extension? HOT 2
- Setuptools deprecation warning with setuptools-rust HOT 4
- Facing an issue while trying to build setuptools-rust HOT 3
- Python crashes on import when using pip editable install on M1 HOT 6
- Unable to control `--debug` / `--release` via PEP517 backend HOT 7
- No module named 'setuptools.command.build' HOT 2
- Document how to use setuptools-rust with a workspace HOT 2
- Scaling PyO3 down with single-file Python extensions HOT 7
- DeprecationWarning: pkg_resources is deprecated as an API
- Allow offline mode via environment variable HOT 7
- `install_extension` crashes due to attempt to mkdir an empty path (v1.8.0)
- With latest nightly rust, builds failing due to changes in cargo output HOT 6
- Trouble using pyproject.toml for limited api HOT 8
- Please update PyO3 to 0.20.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setuptools-rust.