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
tokei: 9.1.1 -> 10.0.1 #68403
tokei: 9.1.1 -> 10.0.1 #68403
Conversation
|
||
# feature flags | ||
# the nixpkg package set looks up values for these flags from `config.tokei`. | ||
, includeJSONOutput ? false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to make these features optional? Typically we build packages with all features enabled by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're not default on tokei's end. I don't really know why you wouldn't want them; they do introduce new dependencies. I did notice serde_json
is in the dependency tree even without the feature on, though I don't know if it's the same version or if the feature compiles it twice.
I guess I should do a compilation time comparison between the two, and unless it's atrocious, then I can remove the flags and just default them to on because these don't pull in external dependencies or anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Release build with all the features takes about 14% more time, in my quick test (building directly rather than through Nix, but w/e). And that's only 2m02s on this machine. I'll just enable them all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR updated to remove these flags and just enable all features.
Enable all crate features, which gets us alternative output formats. Update description and add long description to match what's in the GitHub repo. Add myself as a maintainer.
@GrahamcOfBorg build tokei |
Enable all crate features, which gets us alternative output formats.
Update description and add long description to match what's in the GitHub repo.
Add myself as a maintainer.
Motivation for this change
The package was out of date and I wanted JSON output.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)I built this with no feature flags, with all feature flags, and with just
includesJSONOutput
and tested that the supported output formats for each build were as expected.