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

scx_rustland_core: separate crate source code from assets #217

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

arighi
Copy link
Collaborator

@arighi arighi commented Apr 4, 2024

scx_rustland_core needs to ship both a binary part and a source code part, which will be used to build schedulers based on it.

To effectively publish the scx_rustland_core crate on crates.io we need to properly separate the source code assets from the crate's main source code.

To achieve this, move the assets into a separate directory and declare them inside a [lib] section in Cargo.toml.

This allows to publish the crate on crates.io, providing also a clear separation between source code and assets.

scx_rustland_core needs to ship both a binary part and a source code
part, which will be used to build schedulers based on it.

To effectively publish the scx_rustland_core crate on crates.io we need
to properly separate the source code assets from the crate's main source
code.

To achieve this, move the assets into a separate directory and declare
them inside a [lib] section in Cargo.toml.

This allows to publish the crate on crates.io, providing also a clear
separation between source code and assets.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
@htejun
Copy link
Contributor

htejun commented Apr 4, 2024

I should update scx_utils to do the same thing instead of the manual tar/untar from build.rs.

@htejun htejun merged commit 1c6af78 into main Apr 4, 2024
1 check passed
@htejun htejun deleted the fix-rustland-core-crate branch April 4, 2024 19:51
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.

None yet

2 participants