Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically load SF apis without linking #109

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

youyuanwu
Copy link
Collaborator

@youyuanwu youyuanwu commented Dec 10, 2024

Dynamically load SF apis that previously requires linking. There are a very small number of APIs that are converted.
After this change, user can compile mssf and their apps without installing SF sdk.
This solves the windows import lib problems, and also get around of SF sdk installation problems on ubuntu20. U can also compile your app on linux distros that are not supported by SF, but this does not guarantee the app will be able to run.

Removes FabricTransport mod since no one is using it, and it is a burden to maintain.

@youyuanwu youyuanwu marked this pull request as ready for review December 10, 2024 02:59
@youyuanwu
Copy link
Collaborator Author

Might be able to do this using https://doc.rust-lang.org/nightly/std/sync/struct.LazyLock.html.
Will do it in a separate PR.

crates/libs/com/src/lib.rs Outdated Show resolved Hide resolved
@youyuanwu youyuanwu merged commit 7b905a9 into Azure:main Dec 12, 2024
4 checks passed
@youyuanwu youyuanwu deleted the users/youyuanwu/no-linking branch December 12, 2024 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants