summaryrefslogtreecommitdiff
path: root/maint
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
| * | Add script for *testing* without any features enabledIan Jackson2024-08-191-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | We can't do this for every crate. I looked at what is now matrix-check to see if I wanted to use any of the code. But it seems too entangled with its particular purpose, and has a lot of embedded knowledge of our crates' features. I found it sufficiently far from what I wanted that I decided on a fresh script.
| * | Rename matrix-check from matrix_testIan Jackson2024-08-191-0/+0
| |/ | | | | | | | | There's a TODO asking for `check` to be changed to `test`. And we're about to invent a thing that does, sort of, the `test`.
* / Exclude debian/* from the forbid-absolute-shebangs checksNoisyCoil2024-08-271-1/+1
|/
* maint: Remove exceptions for generational-arenaNick Mathewson2024-08-142-9/+7
| | | | | Now that it's gone, we no longer need to bless its MPL-2.0 usage or excuse it from cargo-audit.
* Merge branch 'cbindgen-ci' into 'main'David Goulet2024-08-071-1/+1
|\ | | | | | | | | | | | | Test cbindgen correctness in CI Closes #1502 See merge request tpo/core/arti!2320
| * cbindgen script: Fix behavior of --checkNick Mathewson2024-08-071-1/+1
| | | | | | | | Previously it didn't actually fail if there was a change.
* | Merge branch 'update-thanks-engine' into 'main'David Goulet2024-08-071-1/+4
|\ \ | |/ |/| | | | | Add a few more tor employes to exclude from our acknowledgments See merge request tpo/core/arti!2306
| * Add a few more tor employes to exclude from our acknowledgmentsNick Mathewson2024-08-011-1/+4
| | | | | | | | | | | | (Our practice has been that after one or two release cycles, employees get left off the list of "thanks" in the changelog, and instead get counted as among the people _doing_ the thanking.)
* | tor-hsservice: Remove unnecessary docsrs cfg_attr.Gabriela Moldovan2024-08-071-1/+0
| | | | | | | | | | The module is correctly documented as "only available on crate feature restricted-discovery" without it.
* | maint/check_doc_features: Add restricted_discovery to additional_required.Gabriela Moldovan2024-08-061-0/+5
| | | | | | | | | | The script isn't handling the `cfg_attr` on `pub mod restricted_discovery` very well, so we need to use the `additional_required` escape hatch.
* | maint/check_doc_features: Include ; in end of item pattern.Gabriela Moldovan2024-08-061-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | This makes the script work on `cfg_attr`s applied to `mod` declarations ending in `;`. Without this change, the script fails with ``` processing tor-hsservice res += fn(os.path.join(dir_, file)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/nickm/arti/./maint/check_doc_features", line 112, in extract_cfg_attr end = min(subline.find(pat) for pat in ' (<' if subline.find(pat) !=-1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: min() arg is an empty sequence ``` when run on code with `cfg_attr`s applied to `mod` declarations. Note: this change just improves the UX a bit, but doesn't actually fix the issue: the script still isn't able to handle `cfg_attr`'d `mod`s: it assumes all `#[cfg_attr(docsrs, ..)]` statements are applied to feature-gated `pub use`s, and if there aren't any (such as in the case of `cfg_attr`d modules, it assumes the feature gating is missing.
* Add a missing "-".Nick Mathewson2024-07-311-1/+1
|
* Add a script to run cbindgen and check its outputs.Nick Mathewson2024-07-312-3/+179
| | | | | | | | | | This is a bit complicated since: - Using cbindgen with macro expansion requires a nightly rust: so, we have to look for one. - There are some cbindgen warnings which I cannot find any way to suppress, so instead of giving all warnings, it seems better to give a diff from the old list of warnings to the new list.
* Bump our CI Rust build cache tokenIan Jackson2024-07-291-1/+1
| | | | | | This invalidates the cache. This may not be strictly necessary, but it will make sure that the new pinned image is used in the CI run *for this MR*.
* maint/rust-maint-common/forbid-absolute-shebang: Fix error messageIan Jackson2024-07-171-1/+1
|
* maint/common/update-shell-includes: Tolerate includes with a `$`Ian Jackson2024-07-161-1/+1
| | | | | | | | | | | | | | | These are not hardcoded, whatever they are, so they're not the principal thing we're trying to prevent. Previously, this would trip on this in arti.git:maint/cargo-publish: maint="$(dirname "$0")" ... # shellcheck source=maint/crates-io-utils.sh source "$maint/crates-io-utils.sh" Ideally we'd teach this script to be able to check and maintain includes for scripts that aren't in common/, but I think that's a task for another day.
* Switch to maint/common/forbid-script-extensionsIan Jackson2024-07-161-38/+0
|
* Switch to maint/common/forbid-absolute-shebangsIan Jackson2024-07-161-10/+0
|
* maint/common/forbid-absolute-shebansg: Fix error handlingIan Jackson2024-07-161-4/+15
| | | | | | | | set -o pipefail is defused by the if. And we should properly check the expected statuses from git. If git isn't found, this script would otherwise spuriously think everything is fine.
* maint scripts: Fix some absolute shebangsIan Jackson2024-07-162-2/+2
|
* maint/common/apt-install: Don't repeat apt-get updateIan Jackson2024-07-161-1/+9
|
* maint/common/apt-install: Use `apt-get install`Ian Jackson2024-07-161-1/+1
| | | | | This changes from `apt install` (which is not supposed to be used in scripts) to `apt-get install`.
* Switch to maint/common/via-cargo-install-in-ciIan Jackson2024-07-161-20/+0
| | | | And delete our old version of the script.
* Aet maint/via-cargo-install-in-ci.cache-idIan Jackson2024-07-161-0/+1
| | | | | | | See docs in maint/common/via-cargo-install-in-ci This is not the same id as in our maint/via-cargo-install-in-ci, which is deliberate. Let's flush this cache, just in case.
* Replace maint/shellcheck_all with maint/common/shellcheck-allIan Jackson2024-07-162-10/+3
| | | | | | | | * Change all in-tree reference * Delete our copy of script, which now lives in the rust-maint-common subtree. * Leave a symlink behind, so that old git hooks that people (IMO possibly unwisely) installed, still work.
* Add symlink to rust-maint-commonIan Jackson2024-07-161-0/+1
| | | | As recommended by the README there
* Add 'maint/rust-maint-common/' from commit ↵Ian Jackson2024-07-1616-0/+698
|\ | | | | | | | | | | | | | | 'be8ec72c0b0ced653c618af564387079d9ea8e5f' git-subtree-dir: maint/rust-maint-common git-subtree-mainline: c05af7edf8f715b31d90d128ba6078a8094f440c git-subtree-split: be8ec72c0b0ced653c618af564387079d9ea8e5f
| * via-cargo-install-in-ci: run in CIIan Jackson2024-07-111-0/+1
| | | | We must make a symlink so things can find the scripts in maint/.
* with_coverage: Exclude maint/ and examples/ in coverage reports.Nick Mathewson2024-07-151-0/+2
| | | | | These are not parts of arti per se, and we don't especially want to track their test coverage.
* Merge branch 'categories' into 'main'Nick Mathewson2024-07-153-6/+134
|\ | | | | | | | | | | | | Check cargo categories against crates.io Closes #1481 See merge request tpo/core/arti!2256
| * maint/: crates_io_api_call: Add a TODO about unifying themIan Jackson2024-07-111-0/+2
| |
| * maint/cargo-check-publishable: Check categoriesIan Jackson2024-07-102-0/+121
| | | | | | | | What a palaver.
| * maint/list_crates: Include `Crate.raw_metadata`Ian Jackson2024-07-101-2/+3
| |