Implement "static" feature flag for FTD2XX static linking.#15
Implement "static" feature flag for FTD2XX static linking.#15newAM merged 1 commit intoftdi-rs:mainfrom
Conversation
|
I tried to integrate this changeset into an existing project that expects the previous linking format (static on linux, dynamic on windows), I put this in my [target.'cfg(target_os = "windows")'.dependencies.libftd2xx-ffi]
git = "https://github.com/Grinkers/libftd2xx-ffi-rs.git"
branch = "main"
features = []
[target.'cfg(target_os = "linux")'.dependencies.libftd2xx-ffi]
git = "https://github.com/Grinkers/libftd2xx-ffi-rs.git"
branch = "main"
features = ["static"]and it seems the This appears to be a known
Would you be ok with waiting until 1.51 to merge this (~7 weeks)? I want to make sure there is a path forward for existing users to retain existing linking functionality. Edit: Alternatively, maybe a separate branch and beta release until 1.51 is available? What do you think? |
|
Is it planned for 1.51? I certainly see no rush for this to be merged upstream. I did it for selfish reasons and don't mind just pointing to my fork... If it's only a couple more releases on stable, then let's just wait. Seems like they're pushing for resolver 2 to be default in edition 2021, so more likely it'll get in sooner than later. Bonus points if we can just set the edition to 2021 too! |
It is present in 1.51 nightly.
Sounds good! |
45e99b6 to
b24aaa9
Compare
This sets the default configuration to dynamically link with FTD2XX on all platforms.
|
1.51 is here 🎊 There is a path forward now to retaining different linking strategies on different platforms with Anything you want to add before this gets merged? Also feel free to add yourself as an author of the crate if you want! |
|
I'm glad Resolver 2 got into 1.51! I have nothing else to add here. I'll probably poke at #1 again once this gets merged in. It'll make it a lot easier to make the version example to compile, run, and test. I'm fine just being a contributor. |
This sets the default configuration to dynamically link with FTD2XX on all platforms.
#10