pyo3/.github
Gregory Szorc 3957afc9c5 pyo3-build-config: conditionalize symbols on resolve-config feature
PR #1856 was buggy in that the `pyo3-build-config` crate didn't actually
work in library mode because `include_str!()` was attempting to resolve
missing files as part of populating some `const` values.

We could change the logic of these constants to make them lazy if
we wanted to support possibly getting access to the value. But the
simple solution is to conditionalize their presence on the crate
feature.

Test coverage for building and testing the crate in insolation with the
feature disabled has been added.

Various code has been conditionalized to avoid compiler warnings.

Also, it appears `cargo build|test -p pyo3-build-config
--no-default-features` still passes default features. This seems wrong
to me. But it is how my system behaves. Maybe it is an sccache bug?
I coded the new tests to `cd pyo3-build-config` first to work around.
2021-09-02 17:18:55 -07:00
..
workflows pyo3-build-config: conditionalize symbols on resolve-config feature 2021-09-02 17:18:55 -07:00
dependabot.yml Add dependabot config (#1148) 2020-09-06 13:49:36 +09:00
issue_template.md main: tweaks from rename 2021-03-16 22:14:57 +00:00
pull_request_template.md Apply suggestions from kngwyu 2020-08-02 02:08:47 +01:00