summaryrefslogtreecommitdiff
path: root/maint/fixup-features/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-2/+2
| | | | Run maint/add_warning
* Teach fixup-features to duplicate the modal indentation in an arrayNick Mathewson2025-10-021-1/+35
| | | | | | If we can't figure out the modal indentation, use " ". Closes #1719.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-073-6/+7
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* Update code for Edition 2024Nick Mathewson2025-08-071-3/+3
| | | | | | | | | | | | | | | | | | 1. Run cargo fix --edition 2. Selectively revert the "if let"->"match" changes. These changes are meant to protect us from the lifetime changes for "if let" bindings in Rust 2024. But we're not actually relying on the old lifetime rules anywhere, and the match syntax here is quite ugly. 3. Automatically revert `$pat:expr_2021` to `$pat:expr`. (We don't actually want to restrict the expression syntax that our macros accept). Done with `git grep -l expr_2021 | xargs perl -i -pe 's/expr_2021/expr/g;'` 4. Run cargo fmt.
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-071-0/+1
| | | | See #2060.
* examples, fixup-features: use inline vars in format stringNick Mathewson2025-05-291-3/+3
| | | | Nightly clippy now suggests this.
* clippy: deny `mod_module_files`Steven Engler2025-01-061-0/+1
| | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
* Merge branch 'dev/cve/fixup-features' into 'main'opara2024-12-031-3/+14
|\ | | | | | | | | | | | | maint: Add exclusion feature to `fixup-features` Closes #1766 See merge request tpo/core/arti!2652
| * maint: Add exclusion feature to `fixup-features`Clara Engler2024-12-031-3/+14
| | | | | | | | | | | | | | | | This commit adds an `--exclude <PREFIX>` argument to the `fixup-features` tool in order to ignore crate paths for crates that we do not publish, mainly those in the `examples/` and `maint/` directory. Fixes #1766
* | add_warnings, *: Allow clippy::needless_lifetimesNick Mathewson2024-12-031-0/+1
|/ | | | | | | | In 1.83, this warning triggers on many of our crates. We're thinking of fixing them all, but for now, we're going to disable the warning. This is part of #1765.
* Re-run maint/add_warning.Nick Mathewson2024-05-061-2/+2
| | | | This commit is automatically generated.
* fixup-features: Update to avoid deprecations in latest toml_editNick Mathewson2024-04-011-5/+12
| | | | (Also, require a version of `toml_edit` that _has_ `DocumentMut`.)
* Run maint/add_warning.Nick Mathewson2024-03-131-0/+1
|
* deny clippy::unchecked_duration_subtractiontrinity-1686a2024-02-291-0/+1
|
* fixup-features: Upgrade toml_edit and itertools.Nick Mathewson2024-02-261-3/+2
|
* maint/fixup-features: Add standard lint block with some overridesIan Jackson2024-02-071-0/+56
| | | | | | | | | We don't have any of these lints yet but let's do this tidying while we're here. The test lint block seems appropriate for this maintenance utility, at least right now while we're not making it a proper external published thing. Override the two lints that currently trip.
* maint/fixup-features: Use .or_default() (prompted by clippy) (fmt)Ian Jackson2024-02-071-3/+1
|
* maint/fixup-features: Use .or_default() (prompted by clippy)Ian Jackson2024-02-071-1/+1
|
* fixup-features: Detect published=>unpublished dependenciesNick Mathewson2023-10-041-8/+58
| | | | | (If a published crate depends on an unpublished crate, crates.io will refuse it.)
* fixup-features: detect wildcard versions.Nick Mathewson2023-10-041-2/+26
| | | | | None of our crates should use wildcard versions; this will help us detect them before publishing.
* fixup-features: minor doc fix.Nick Mathewson2023-05-151-5/+5
|
* fixup-features: Do not annotate non-features.Nick Mathewson2023-05-152-3/+7
|
* fixup-features: Do not add edges from non-features.Nick Mathewson2023-05-152-2/+7
|
* fixup-features: distinguish internal and external edgesNick Mathewson2023-05-152-3/+8
| | | | An external edge does not cause its target to be created as a feature.
* fixup-features: Add an option to not annotate.Nick Mathewson2023-05-152-6/+24
|
* fixup-features: ability to add annotations for everything.Nick Mathewson2023-05-151-7/+13
|
* fixup-features: fix off-by-one in argument reading.Nick Mathewson2023-05-151-1/+1
|
* fixup-features: Implement remaining rules.Nick Mathewson2023-05-151-34/+64
|
* fixup-features: Enforce __is_experimental tagging rule.Nick Mathewson2023-05-151-0/+19
|
* fixup-features: Revise our rule 2 enforcement to use newer APIs.Nick Mathewson2023-05-151-14/+14
|
* fixup-features: Refactor "apply a list of changes" code into a new module.Nick Mathewson2023-05-152-25/+88
|
* fixup-features: Make a feature graph type in a submoduleNick Mathewson2023-05-152-60/+148
| | | | | I tried to use petgraph, but it was optimized for performance over usability, and the usability was beyond me.
* fixup-features: minor spelling and comment fixes.Nick Mathewson2023-05-151-1/+1
|
* fixup-features: Describe the semantics we actually wantNick Mathewson2023-05-151-6/+26
| | | | | | | | | The problem with our old rules is that "reachable from __nonadditive" and "reachable from experimental" were not themselves sensible definitions of nonadditive and experimental. See https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1068#note_2887939
* Obscure various literal uses of the todo markerIan Jackson2023-03-211-1/+1
| | | | In each case, use a circumlocution.
* fixup-features: Use write-and-rename pattern.Nick Mathewson2023-03-201-1/+3
|
* fixup-features: Improve a comment.Nick Mathewson2023-03-201-1/+1
|
* fixup-features: Simplify "optionality" detection.Nick Mathewson2023-03-201-17/+13
|
* New "fixup-features" tool to enforce properties in Cargo.tomlsNick Mathewson2023-03-201-0/+327
See top-level main.rs comment for an explanation. Closes #771