dtolnay / inventory

Typed distributed plugin registration
Apache License 2.0
948 stars 43 forks source link

Add feature to force .init_array and .text.startup #66

Closed edelanghe-ledger closed 5 months ago

edelanghe-ledger commented 6 months ago

Sometime target_os is not defined in our list but .text.startup and .init_array works as expected. We should let the user force the feature if so.

Since we use macro_rule, the features must be defined by the user package

nspin commented 5 months ago

https://github.com/dtolnay/inventory/pull/70 is an alternative take on this same goal, where the feature is an intrinsic feature of the inventory crate.