TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.22k stars 217 forks source link

Cargo fails due to missing features #504

Closed vitezprchal closed 3 weeks ago

vitezprchal commented 3 weeks ago

Describe the Bug When attempting to build the project, the dependency resolution for the inkwell crate fails due to missing features.

error: failed to select a version for `inkwell`.
    ... required by package `example v0.1.0`
versions that meet the requirements `^0.4.0` (locked to 0.4.0) are: 0.4.0

the package `example` depends on `inkwell`, with features: `llvm18-0` but `inkwell` does not have these features.

To Reproduce Cargo.toml

[dependencies]
inkwell={version="0.4.0",features=["llvm18-0"]}

Expected Behavior Should resolve correctly without any feature-related errors, allowing the project to build successfully.

LLVM Version (please complete the following information):

Desktop:

vitezprchal commented 3 weeks ago

When adding:

[dependencies]
inkwell = { git = "https://github.com/TheDan64/inkwell", branch = "master", features = ["llvm18-0"] }

Everything seems to work now.

TheDan64 commented 3 weeks ago

LLVM 18 will be a part of 0.5.0 and hasn't been releases to crates.io yet