Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hombit/cxx-not-feature
https://github.com/hombit/cxx-not-feature
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hombit/cxx-not-feature
- Owner: hombit
- Created: 2024-01-03T13:32:18.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-03T13:42:27.000Z (about 1 year ago)
- Last Synced: 2024-10-28T12:09:44.904Z (2 months ago)
- Language: Rust
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository demonstatetes the lack of support of `#[cfg(not(feature = "foo"))]` inside [`cxx`](https://github.com/dtolnay/cxx)'s `bridge` macro.
It simulates a situation where a C++ library changed its API in a new version removing some variants from a enum.
In this case it would be useful to have a feature flag to support both versions of the library.Reproduce the issue by running `cargo build --features=v2`.