summaryrefslogtreecommitdiff
path: root/maint
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* maint: Add paste tor the tor-keys crateDavid Goulet2024-09-041-1/+2
|
* Fix typosDimitris Apostolou2024-09-033-4/+4
|
* Merge branch 'ahf/macos-cross-build' into 'main'Alexander Hansen Færøy2024-09-021-0/+1
|\ | | | | | | | | | | | | Fix reproducible build CI job for macOS Closes #1394 and #1507 See merge request tpo/core/arti!2377
| * Explicitly specify the deployment target of macOS to 10.7.Alexander Færøy2024-09-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | osxcross tries in various ways to detect which version of the compiler we have, which version of the OS, which C++ standard library we use, and many other things. With this variable set, osxcross seems able to detect the environment provided by the SDK that we use. The error messages from osxcross is as follows: osxcross: error: cannot find libc++ headers osxcross: error: while detecting target This origins from its internal target detection code in target.cpp of osxcross. This file contains a signficant amount of the detection for paths of different versions of the macOS SDK's and macOS versions. All of this is truly cursed. In osxcross's main.cpp, the variable is read in: if (char *p = getenv("MACOSX_DEPLOYMENT_TARGET")) { target.OSNum = parseOSVersion(p); unsetenv("MACOSX_DEPLOYMENT_TARGET"); } and setting it thus forces the OS version to be parsed from the variable instead of its (in our case failed) attempt at detecting the version itself. Fixes: tpo/core/arti#1394
* | check_toposort: Explain why we also check dev-dependenciesJim Newsome2024-08-271-0/+4
| |
* | Add comments explaining purpose of check_toposortJim Newsome2024-08-271-1/+5
| |
* | Merge branch 'ci' into 'main'Ian Jackson2024-08-272-0/+54
|\ \ | | | | | | | | | | | | Run tests of every crate, with all features disabled See merge request tpo/core/arti!2350