This PR handles cfg_attr attribute for iml_runtime_apis!. It allows conditionally to compile different runtime api version implementations based on feature flag. E.g.:
The code above will compile version 1 (with just stable_one) by default and version 99 (with stable_one and staging_one) if enable-staging-api feature is enabled.
EDIT: modified the sample code to match the latest implementation suggested by @bkchr
This PR handles
cfg_attr
attribute foriml_runtime_apis!
. It allows conditionally to compile different runtime api version implementations based on feature flag. E.g.:The code above will compile version 1 (with just
stable_one
) by default and version 99 (withstable_one
andstaging_one
) ifenable-staging-api
feature is enabled.EDIT: modified the sample code to match the latest implementation suggested by @bkchr