summaryrefslogtreecommitdiff
path: root/maint
Commit message (Collapse)AuthorAgeFilesLines
...
* | add_warnings, *: Allow clippy::needless_lifetimesNick Mathewson2024-12-032-0/+2
|/ | | | | | | | 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.
* maint/check_licenses: Add unicode-ident license to recognized list.Gabriela Moldovan2024-11-281-0/+2
| | | | | | | | `unicode-ident` recently changed their [license] from "(MIT OR Apache-2.0) AND Unicode-DFS-2016" to "(MIT OR Apache-2.0) AND Unicode-3.0". [license]: https://github.com/dtolnay/unicode-ident/commit/36cccb825aef6f334cfb57afc82a728c3d2d652f
* arti-relay: remove runtime/tls-related featuresSteven Engler2024-11-141-3/+2
|
* arti-relay: add 'test-all-crates' and 'matrix-check' exceptionsSteven Engler2024-11-131-2/+3
|
* cargo_audit: Temporarily ignore RUSTSEC-2024-0384.Gabriela Moldovan2024-11-121-0/+8
| | | | | | | | | We depend on `instant`, which is unmaintained, via `notify`. `notify` switched over to [`web-time`], but hasn't relased the change yet, so we need to ignore the advisory for now. [`web-time`]: https://github.com/notify-rs/notify/pull/652
* ci_log_span_fns.sh: make API easier to useJim Newsome2024-11-041-8/+54
|
* Replace maint/ci_log_span with maint/ci_log_span_fns.shJim Newsome2024-11-042-13/+22
| | | | | | | | | | | Provide functions for starting and ending spans instead of the script doing it itself. The current version of the functions are directly from the gitlab documentation <https://docs.gitlab.com/ee/ci/jobs/job_logs.html#custom-collapsible-sections>. This is currently functionally similar to what was here before, but using functions here will let us make this a bit more convenient, which will be done in a follow-up commit.
* check_licences: Allow the ludicrous "Apache-2.0) OR MIT AND (MIT"Ian Jackson2024-10-301-0/+4
| | | | | | | | | Currently cargo-license mangles libm's Cargo.toml information very badly! And also our licence checker script is rather too stupid to do the boolean logic. I have a better licence checker elsewhere, in a personal project but ... it's GPL'd :-). https://salsa.debian.org/dgit-team/tag2upload-service-manager/-/blob/main/maint/check-licences?ref_type=heads
* Adjust docsrs exception and documentation for unix::SocketAddrNick Mathewson2024-10-291-1/+1
|
* python-lints script to run flake8, black, and mypy.Nick Mathewson2024-10-281-0/+204
| | | | | | | The script is a bit tricky because it needs to set arguments correctly, use the right dependencies, treat packages differently from scripts, and find all of the packages and scripts in our repository.
* update-md-links: annotate a Popen generic.Nick Mathewson2024-10-281-1/+2
| | | | For some reason this will soon be necessary with mypy.
* python: Make mypy accept postprocess_coverage_*Nick Mathewson2024-10-242-5/+33
| | | | | | This has a little complexity since beautifulsoup4 is fairly well duck-typed, but it also has type annotations to describe its duck-typing.
* Python: simple annotations to allow mypy to pass.Nick Mathewson2024-10-241-3/+4
|
* python: Split lines over 99 chars longNick Mathewson2024-10-241-2/+4
| | | | | | The `black` formatter did most line wrapping for us, and we accept its default of 88 characters there, but for comments and docstrings (which black doesn't wrap) we allow up to 99 characters.
* python: one import per line.Nick Mathewson2024-10-241-1/+2
|
* Python: use a more lint-acceptable block comment format.Nick Mathewson2024-10-241-3/+6
|
* python: Avoid using "l" as a variable name.Nick Mathewson2024-10-242-16/+16
| | | | | (Python coding style guide and lint tools deprecate it, even if your font distinguishes l, 1, I, and |.)
* rpc-docs-tool: imports go at the head of the module.Nick Mathewson2024-10-241-7/+7
|
* python: Use "a not in b" rather than "not a in b".Nick Mathewson2024-10-243-4/+4
| | | | Due to precedence, both work the same, but the former is preferred.
* python: Fix warnings about unused variables and modules.Nick Mathewson2024-10-244-5/+3
|
* Run "black" to reformat all our pythonNick Mathewson2024-10-2413-316/+506
| | | | | | | | | | | | | | | | | "Black" is an "opinionated" python formatter, whose opinionatedness is somewhat in the spirit of rustfmt. This MR runs black with default settings on all of our python code in Arti. It was produced by the following commands ``` # Everything in python/ black python/ # Everything with a .py extension fd '.py$' -X black # Everything with a python shebang. git grep -l '#! */usr/bin/env *python' | xargs black ```
* rpc-docs-tool: Provide better warning on rustdoc format mismatch.Nick Mathewson2024-10-231-0/+27
|
* Update rpc-docs-tool to work with latest nightly rustdocNick Mathewson2024-10-221-1/+7
| | | | | Additionally, document that this tool requires particular versions of nightly, since the rustdoc json format is unstable.
* test-all-crates: Rename --start-from to --skip-untilIan Jackson2024-10-221-3/+3
|
* test-all-crates: New --start-from optionIan Jackson2024-10-221-0/+11
| | | | This is very useful when iterating through CI.
* test-all-crates: conditional options, to test more cratesIan Jackson2024-10-221-2/+14
| | | | | | | | | | | | | This new feature lets us provide the "enable these options which are needed to make the tests pass" featrure, which is different for each of the afflicted crates. Then we can test these crates tor-hsservice arti arti-client which minimal features. This will be important in a moment, as we're going to want to be relying on actually minimal features tests in arti cfg.rs.
* test-all-crates: Introduce proper argument parserIan Jackson2024-10-221-3/+7
|
* maint/cbindgen: Workaround for systems without gnu-getopt by default.Nick Mathewson2024-10-211-2/+9
|
* Merge branch 'rpc-doc-automation' into 'main'Nick Mathewson2024-10-031-0/+669
|\ | | | | | | | | Python tool to build RPC method/type documentation. See merge request tpo/core/arti!2479
| * rpc-doc-tool: improvements to HTML_HEADERNick Mathewson2024-10-031-2/+4
| |
| * rpc-doc-tool: move constants to head of fileNick Mathewson2024-10-031-26/+26
| |
| * rpc-doc-tool: Use __file__ in place of argv[0]Nick Mathewson2024-10-031-4/+6
| |
| * rpc-doc-tool: Fix handling for "magic" headings.Nick Mathewson2024-10-021-4/+3
| |
| * add references for rustdoc links.Nick Mathewson2024-10-011-8/+45
| |
| * rpc-doc-tool: only emit Parameters link when there are some.Nick Mathewson2024-10-011-1/+15
| |
| * Python tool to build RPC method/type documentation.Nick Mathewson2024-10-011-0/+615
| | | | | | | | | | | | Uses the RPC library to extract a list of RPC methods and objects; uses rustdoc-nightly to extract documentation for them; outputs a markdown document.
* | forbid-hard-tabs: Improve doc commentIan Jackson2024-10-021-1/+5
| | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2488#note_3087164
* | bash-utils.sh: reject_options: Don't crash due to -u if no argumentsIan Jackson2024-10-021-1/+1
| |
* | Provide new forbid-hard-tabs scriptIan Jackson2024-10-021-0/+45
|/
* Merge branch 'bug_1632' into 'main'Nick Mathewson2024-09-301-1/+0
|\ | | | | | | | | | | | | tor-llcrypto: replace simple_asn1 dependency with der-parser Closes #1632 See merge request tpo/core/arti!2462
| * maint: removed num-bigint line from downgrade-dependencies scriptMorgan2024-09-291-1/+0
| |
* | Update list of Tor employees in exclude_contributorsNick Mathewson2024-09-301-1/+4
|/
* downgrade_dependencies: Add exception for ring 0.16Nick Mathewson2024-09-251-1/+2
|
* Use Rust 1.77 for our reproducible builds.Nick Mathewson2024-09-251-1/+1
|
* Upgrade MSRV to 1.77Nick Mathewson2024-09-252-2/+2
| | | | This will allow us to upgrade to the latest version of rusqlite.
* add example: axum router as onion servicetidely2024-09-241-0/+1
|
* rtcompat: Add definitions for unix::SocketAddr.Nick Mathewson2024-09-241-0/+6
|
* Bump MSRV from 1.70 to 1.75.Wesley Aptekar-Cassels2024-09-162-2/+2
|
* maint/cargo_audit: Add exception for RUSTSEC-2024-0370.Gabriela Moldovan2024-09-091-0/+5
| | | | Adding an exception for now, as per #1608
* maint/downgrade-dependencies: Update exceptions.Gabriela Moldovan2024-09-091-1/+1
| | | | | | | | | | | | | | | | Fixes the `minimal-versions` failure: ``` error: package ID specification `[email protected]` did not match any packages Did you mean one of these? [email protected] ``` (we don't actually need to un-downgrade `futures-lite` anymore) But we *do* need to un-downgrade `event-listener` (`async-global-executor` needs `event_listener::EventListener` to be `UnwindSafe`, and in `event-listener 3.0.0`, they are not)