-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation in setuptools_rust fails with 1.70.0-nightly
toolchain
#320
Comments
What's the error message? |
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
|
Actually I cannot figure out which change on rustc break the compatibility. Recently |
Assumptions
--
rustc 1.70.0-nightly (db0cbc48d 2023-03-26)
--
rustc 1.70.0-nightly (478cbb42b 2023-03-28)
--
rustc 1.68.0-stable
Description
wheel
package generation fails with latest toolchain, whencrate-type = ["cdylib"]
is not contained inCargo.toml
.Cause
The following command in build process will not work:
Instead, following works:
Workaround
any of the following avoids the bug:
crate-type = ["cdylib"]
inCargo.toml
args=["--crate-type", "cdylib"]
in initializer ofRustExtension
Sample:
I will create PRs later.
The text was updated successfully, but these errors were encountered: