You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Definition: Environment variables should still have the same behaviour in future stable Parsec versions.
Enforcement: Env var behaviours must not be removed in Parsec.
Enforcement Check
Environment variables can be used to modify the buildtime/runtime configuration of Parsec. For example currently the psa-crypto crates reads for MBEDTLS_LIB_DIR, MBEDTLS_INCLUDE_DIR and MBEDCRYPTO_STATIC variables. Parsec builders might depend on these variable to still work.
Parsec can not really enforce it as some env var might be read by other crates. We should however identify the important ones and make sure they still work in the future.
This can only be checked via testing/code review.
Testing
For testing, those env vars should be exerced for different versions of Parsec.
The text was updated successfully, but these errors were encountered:
Worth including the PKG_CONFIG variables here, needed in some cases for cross-compilation. Some details about cross compilation with pkg-confighere, and some Rust-specific stuff here
We can not possibly track all environment variables used in all the dependency tree but we can list and test the ones we define and are important in Parsec:
MBEDTLS_INCLUDE_DIR: location of the PSA Crypto header files (defined here)
MBEDTLS_LIB_DIR: location of the PSA Crypto library (libmbedcrypto.a/so)
MBEDCRYPTO_STATIC: flag to enable static compilation to Mbed Crypto
The first two variables are tested in the CI script. The last one is tested in the psa-crypto CI.
Definition: Environment variables should still have the same behaviour in future stable Parsec versions.
Enforcement: Env var behaviours must not be removed in Parsec.
Enforcement Check
Environment variables can be used to modify the buildtime/runtime configuration of Parsec. For example currently the
psa-crypto
crates reads forMBEDTLS_LIB_DIR
,MBEDTLS_INCLUDE_DIR
andMBEDCRYPTO_STATIC
variables. Parsec builders might depend on these variable to still work.Parsec can not really enforce it as some env var might be read by other crates. We should however identify the important ones and make sure they still work in the future.
This can only be checked via testing/code review.
Testing
For testing, those env vars should be exerced for different versions of Parsec.
The text was updated successfully, but these errors were encountered: