Description
The secp256k1-sys
README currently says:
Linking to external symbols
If you want to compile this library without using the bundled symbols (which may
be required for integration into other build systems), you can do so by adding
--cfg=rust_secp_no_symbol_renaming'
to yourRUSTFLAGS
variable.
However, all this does is not use the bundled symbols by not renaming the Rust references to them. It doesn't prevent those symbols from being built, which becomes pointless work in this user-configured context.
Instead, the build.rs
could check RUSTFLAGS
for the presence of --cfg=rust_secp_no_symbol_renaming'
, and simply exit if it is present, since that is a clear indication from the user that they do not want these bundled symbols.
As a stretch goal, having this be controlled by a feature flag would enable the cc
dependency to be dropped as well if not using the bundled symbols, but cc
is a relatively small and self-contained dependency, so that's less of a problem.