Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hombit/cxx-not-feature


https://github.com/hombit/cxx-not-feature

Last synced: 24 days ago
JSON representation

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`.