Read Python 3 sysconfigdata in Rust.
Add it to your Cargo.toml:
[dependencies]
python3-config = "0.2"then you are good to go. If you are using Rust 2015 you have to add extern crate python3_config to your crate root as well.
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.