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

Question: support for app being called as library #118

Open
dj8yfo opened this issue Jan 17, 2024 · 2 comments
Open

Question: support for app being called as library #118

dj8yfo opened this issue Jan 17, 2024 · 2 comments

Comments

@dj8yfo
Copy link

dj8yfo commented Jan 17, 2024

@yhql
is there anything like this in ledger-device-rust-sdk?
https://github.com/LedgerHQ/nanos-secure-sdk/blob/master/lib_standard_app/main.c#L163-L177

@agrojean-ledger
Copy link
Contributor

agrojean-ledger commented Jan 17, 2024

@dj8yfo for the time being we do not support passing arguments (as it is done when an app is loaded as a library) to Rust apps main function as you can see here

The code you point out is used by apps that support the swap feature, is this what you would like to add to your app ?

@yhql
Copy link
Contributor

yhql commented Jan 17, 2024

Hello, this is (or rather was) in-development here #82
But for now we're unclear on the level of support we would like to provide to libcall/plugins, other more basic features of the rust SDK taking priority.

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

No branches or pull requests

3 participants