TheButlah commented on PR #268: URL: https://github.com/apache/teaclave-trustzone-sdk/pull/268#issuecomment-3728140262
Using feature flags in this manner exposes consumers of the code to dependency hell. If A consumes teec and B consumes A, I have to add a dependency from B -> teec as well (to define the feature flag), or I must re-export the feature flags in A. This is brittle - if teec changes (which it can, even if the semver version of A doesn't), B now has an out-of-date dependency (version 0.7 of teec, but A has 0.8). Due to the links=teec setting in the cargo.toml of optee-teec-sys, B now gets an error. IMO its just tooling pain that a build-time env var is better suited to solve. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
