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

Turn off nix's default features #123

Merged

Conversation

smalis-msft
Copy link
Contributor

As far as I can tell from a quick search, this crate only uses a small subset of nix's functionality. No need to build all of it.

As far as I can tell from a quick search, this crate only uses a small subset of nix's functionality. No need to build all of it.
@daprilik
Copy link

daprilik commented Aug 8, 2023

Semi-related to #122, as ideally, the dep could be entirely optional

@cecton
Copy link
Member

cecton commented Aug 9, 2023

Awesome thanks! @smalis-msft may I ask you to make the nix dependency optional? It should be just a #[cfg(feature = "nix")] to add somewhere and mark the dependency as optional. Should be really easy if you don't mind 🙏

@daprilik
Copy link

daprilik commented Aug 9, 2023

Note that unless you want to release a breaking change, you'll want to add a new default features array (that folks can then opt-out of via default-features = false.

@cecton cecton merged commit 7219e8b into rust-disk-partition-management:main Aug 14, 2023
9 checks passed
@cecton cecton changed the title Turn off nix's default features. Turn off nix's default features Aug 14, 2023
@daprilik
Copy link

@cecton Any chance you could publish a release to crates.io with these changes?

@smalis-msft smalis-msft deleted the no-nix-default-features branch August 16, 2023 12:25
@cecton
Copy link
Member

cecton commented Aug 21, 2023

Hello! Yes sorry I completely forgot

@cecton
Copy link
Member

cecton commented Aug 21, 2023

Released 1.0.2

@daprilik
Copy link

All good, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants