dtolnay/gflags

Add build option to use C++ gflags as backend

Aperta

#6 aperta il 20 apr 2019

 (1 commento) (0 reazioni) (0 assegnatari)Rust (6 fork)github user discovery
help wanted

Metriche repository

Star
 (55 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

The pure Rust implementation is good as a default, but it would be amazing to also provide:

[dependencies]
gflags = { version = "0.N", features = ["interop"] }

in which everything looks and behaves the same at the Rust source code level but the implementation switches to exactly the one used by C++ gflags, so that flags defined in Rust are seen by a C++ main function and vice versa.

Unsure whether this is possible.

Guida contributor