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

Document default-features of satellite serverless functions #187

Open
peterpeterparker opened this issue Sep 14, 2024 · 0 comments
Open

Comments

@peterpeterparker
Copy link
Contributor

peterpeterparker commented Sep 14, 2024

When a dev eject the satellite, the lib.rs is generated with all hooks. The developer can, if they wish, remove all hooks by setting default-features to false

junobuild-satellite = { path = "../libs/satellite", default-features = false }

It's also possible to speficy only a subset of the features

default = ["on_set_doc", "on_set_many_docs", "on_delete_doc", "on_delete_many_docs", "on_upload_asset", "on_delete_asset", "on_delete_many_assets", "assert_set_doc", "assert_delete_doc", "assert_upload_asset", "assert_delete_asset"]

We should document that.

For example

junobuild-satellite = { version = "x.y.z", default-features = false, features = ["assert_set_doc", "assert_delete_doc"] }
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

1 participant