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

Some clean-up #125

Merged
merged 7 commits into from
Aug 18, 2024
Merged

Some clean-up #125

merged 7 commits into from
Aug 18, 2024

Conversation

rneswold
Copy link
Contributor

Optimize features used in dependent crates. Move Store trait into drmemd.

Since optional dependencies automatically become features, there's no
need to have a two-layer naming scheme for the drivers. Just use the
drivers' package name.
Added "dep:" to optional dependencies that shouldn't be enabled by
themselves.
Now the crates only pull in features they use from their dependencies.
I thought this would reduce the size of the executable, but it didn't.
Apparently the `lto` option does a very good job at removing unused
code. However, it does reduce the link time because the `lto` option
doesn't have to do as much work.
The `Store` trait is now only used in `drmemd`.
@rneswold rneswold linked an issue Aug 18, 2024 that may be closed by this pull request
@rneswold rneswold merged commit b9916e0 into DrMemCS:main Aug 18, 2024
4 checks passed
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.

Remove Store trait from drmem-api crate
1 participant