Commit Graph

65 Commits

Author SHA1 Message Date
Taiki Endo
771bd4fef9 codegen: Tweak code around BufWriter 2025-02-11 18:40:20 +09:00
Taiki Endo
bee06ee963 codegen: Update ureq from 2 to 3 2025-02-06 23:24:03 +09:00
Taiki Endo
be22d29d34 Fix clippy::unnecessary_semicolon warning
```
error: unnecessary semicolon
   --> tools/codegen/src/main.rs:251:10
    |
251 |         };
    |          ^ help: remove
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
    = note: `-D clippy::unnecessary-semicolon` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::unnecessary_semicolon)]`
```
2025-01-30 14:03:36 +09:00
Taiki Endo
b58c61fa21 Apply clippy::unused_trait_names lint 2025-01-13 23:41:50 +09:00
Taiki Endo
8cec5c3000 codegen: Ignore clippy::literal_string_with_formatting_args lint
```
error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:142:65
    |
142 | ...                   d.url = Some(template.url.replace("${version}", version));
    |                                                           ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args
    = note: `-D clippy::literal-string-with-formatting-args` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::literal_string_with_formatting_args)]`

error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:146:64
    |
146 | ...                   .map(|s| s.map(|s| s.replace("${version}", version)));
    |                                                      ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:567:73
    |
567 |             let template_url = d.url.take().unwrap().replace(version, "${version}");
    |                                                                         ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:568:84
    |
568 |             let template_bin = d.bin.take().map(|s| s.map(|s| s.replace(version, "${version}")));
    |                                                                                    ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:615:29
    |
615 |     let mut s = s.replace("${package}", package).replace("${tool}", package);
    |                             ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args

error: this looks like a formatting argument but it is not part of a formatting macro
   --> tools/codegen/src/main.rs:625:25
    |
625 |         s = s.replace("${version}", version);
    |                         ^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#literal_string_with_formatting_args
```
2024-12-27 10:57:03 +09:00
Taiki Endo
f0e0e09968 Update comments 2024-11-20 04:10:19 +09:00
Taiki Endo
33a1d08515 Fix clippy::unnecessary_map_or warning
```
error: this `map_or` is redundant
  --> tools/codegen/src/main.rs:68:34
   |
68 |         if r.len() < per_page || version_req.map_or(false, |req| req == "latest") {
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `version_req.is_some_and(|req| req == "latest")`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
   = note: `-D clippy::unnecessary-map-or` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_map_or)]`
```
2024-11-17 13:31:13 +09:00
Taiki Endo
66b16da49c codegen: Use LazyLock again 2024-08-12 05:02:13 +09:00
Jiahao XU
4558bb807b Speedup codegen by caching tools/codegen compilation (#554) 2024-06-22 12:43:03 +09:00
Taiki Endo
926cd2a86f codegen: Remove needless allocation 2024-06-21 22:08:16 +09:00
John Vandenberg
8162519fa9 Add knope (#553)
* Add knope

* Update tag_prefix
2024-06-21 19:35:52 +10:00
John Vandenberg
a6c0face45 Use asset etag to avoid fetches (#547) 2024-06-21 03:54:24 +00:00
Taiki Endo
a5ddc5a290 codegen: Cleanup 2024-06-20 04:34:01 +09:00
Taiki Endo
e2ceb8a503 codegen: Unify string conversion style 2024-06-20 04:32:58 +09:00
Taiki Endo
5a6e4c785f Add manifest for cargo-nextest 2024-06-09 16:41:17 +09:00
John Vandenberg
66c4dcc03d Add rclone (#511)
* Add rclone

* fix cspell

* specify bin dir
2024-06-08 16:07:49 +10:00
John Vandenberg
d7080cb663 Generate Markdown table of tools (#473) 2024-06-04 03:56:04 +09:00
John Vandenberg
68c5e86b83 codegen: Avoid using GITHUB_TOKEN with crates.io (#484) 2024-05-19 11:54:42 +09:00
John Vandenberg
d722dd2b73 codegen: Allow skipping existing versions (#485) 2024-05-19 11:51:47 +09:00
Taiki Endo
502402be82 Improve support for SUSE/Arch based containers/self-hosted runners 2024-04-19 21:35:52 +09:00
Taiki Endo
599507f802 tools: Tweak manifest.sh 2024-04-01 22:41:43 +09:00
John Vandenberg
ee2b189d46 Add editorconfig-checker (#430) 2024-04-01 09:01:27 +09:00
Taiki Endo
d5fae932b8 Fix cargo-spellcheck installation (#428) 2024-03-28 21:43:19 +09:00
Taiki Endo
a005b5b568 codegen: Tweak imports 2024-03-20 14:52:52 +09:00
Taiki Endo
326767beec codegen: Add todo comment about error message 2024-03-18 10:45:09 +09:00
Léo Gaspard
70fd2d4303 Add wasm-bindgen (#383)
Co-authored-by: Taiki Endo <te316e89@gmail.com>
2024-03-02 23:24:02 +09:00
Taiki Endo
41e81ec8b7 codegen: Improve handling of broken versions 2024-03-02 18:25:05 +09:00
Taiki Endo
7c2d35d7f6 codegen: Add rust_crate field to cargo-rdme 2024-03-02 17:52:28 +09:00
Taiki Endo
38a99cadbc Reflect recent updates of biome and zola 2024-03-02 16:29:28 +09:00
Taiki Endo
a86757441d codegen: Mark cargo-rdme 1.4.3 as broken
As of 2024-02-13 01:30 UTC, this release only contains Windows binary.

```
Error: platform list in base manifest for cargo-rdme contains x86_64_linux_musl, but latest release (1.4.3) doesn't contain it
```
2024-02-13 10:31:04 +09:00
Taiki Endo
caf2aa3753 Support dprint on aarch64 Linux (musl) 2023-10-31 22:08:19 +09:00
Taiki Endo
3ba41e50ff Use [lints] in Cargo.toml and apply more lints 2023-10-31 03:11:49 +09:00
Taiki Endo
5fce684c96 Add wasmtime 13.0.1,11.0.2,10.0.2 2023-10-27 10:30:56 +09:00
Taiki Endo
6bb3a496f8 codegen: Use toml_edit directly 2023-10-25 00:12:46 +09:00
Taiki Endo
9fa9dc1e41 codegen: Allow compiling serde and serde_derive in parallel 2023-10-18 23:22:44 +09:00
Taiki Endo
b30758ca4a Support signature verification (minisign) 2023-09-28 12:01:51 +09:00
Taiki Endo
d90c734ca8 Update .rustfmt.toml 2023-09-27 21:35:58 +09:00
Taiki Endo
b441885d30 tidy: Update tools/tidy.sh and add SPDX-License-Identifier 2023-09-16 17:56:46 +09:00
John Nunley
b45f49a51d Add support for xbuild (#212)
Signed-off-by: John Nunley <dev@notgull.net>
2023-09-04 21:46:18 +09:00
Taiki Endo
1cdb36bf16 Use cargo-binstall to install nextest 2023-08-05 12:26:02 +09:00
Taiki Endo
94d8a59049 codegen: Clean up rust crate handling 2023-08-04 21:58:05 +09:00
Taiki Endo
26fe17aa20 codegen: Prevent yanked version from being selected as candidate for latest or omitted version 2023-08-03 22:00:35 +09:00
Taiki Endo
76d33aa44e codegen: Remove INTERNAL_CODEGEN_GH_PAT 2023-07-09 12:49:58 +09:00
Taiki Endo
68b724e842 Format with rustfmt nightly-2023-07-02 2023-07-02 18:40:50 +09:00
John Nunley
7e750de5db Add support for cargo-dinghy (#133) 2023-06-10 23:00:18 +09:00
Taiki Endo
cb5553fad7 codegen: Handle prerelease 2023-02-11 04:08:40 +09:00
Taiki Endo
979f068989 codegen: Tweak log message 2023-01-27 23:48:46 +09:00
Taiki Endo
2ed407fd17 codegen: Sort releases returned from GitHub API 2023-01-16 20:24:12 +09:00
Taiki Endo
4269f7d620 codegen: Tweak retry 2023-01-15 21:05:37 +09:00
Taiki Endo
c92838b65e codegen: Format with rustfmt 2023-01-15 19:58:27 +09:00