Skip to content

Use only rlib as crate type #135

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

LucasSte
Copy link
Contributor

@LucasSte LucasSte commented Apr 9, 2025

Problem

We cannot run LTO natively for the SBF target, since the Rust compiler complains that dependencies are declared as both cdylib and rlib crate types.

Summary of changes

  1. Rewrite documentation to mention the fact that we should use different crate types depending on the Rust package intended usage.
  2. Set the crate type as rlib for SDK and program, since they are not supposed to be programs for deployment, but instead libraries to be imported.

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.

1 participant