Commit graph

16310 commits

Author SHA1 Message Date
hi-rustin ed9dc44f47 Update other tests to use cargo:: syntax
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:17:55 +08:00
hi-rustin 9eeffbf0d7 Add some syntax tests
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:17:55 +08:00
hi-rustin bd230e810c Update build script docs
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:17:55 +08:00
hi-rustin dfb2795ffe Update build script tests to use cargo::
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:17:55 +08:00
hi-rustin 25365d904c Use syntax_prefix to improve error message
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:17:55 +08:00
hi-rustin 56fdb1d0b6 Add parse_metadata to prase metadata
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:17:55 +08:00
hi-rustin 9ebe3b332a Extend the build directive syntax with cargo::
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:17:55 +08:00
bors 74ef21bb3f Auto merge of #13195 - Urgau:check-cfg-rework-comment, r=weihanglo
Rework `--check-cfg` generation comment

While working on something related to `--check-cfg`, I looked back at this comment and realized it could be improved, so here is my PR improving it.
2023-12-22 23:38:58 +00:00
Urgau 2dafb340dc Rework --check-cfg generation comment 2023-12-22 18:15:54 +01:00
bors 363a2d1132 Auto merge of #13187 - weihanglo:git-paths, r=ehuss
refactor: centralize git checkouts and db paths
2023-12-22 03:12:42 +00:00
bors 53eb9a28f7 Auto merge of #13192 - weihanglo:version-bump, r=epage
Bump to 0.78.0; update changelog

[rendered](https://github.com/weihanglo/cargo/blob/version-bump/CHANGELOG.md)
2023-12-22 02:41:20 +00:00
Weihang Lo 5429c90e48
Update changelog for 1.77.0 2023-12-21 16:12:19 -05:00
Weihang Lo 484452359b
Update changelog for 1.76.0 2023-12-21 16:12:19 -05:00
Weihang Lo 49ada9f092
Bump to 0.78.0 2023-12-21 16:08:24 -05:00
Weihang Lo 0a4ce466dd
refactor: centralize git checkouts and db paths 2023-12-20 17:50:42 -05:00
bors a9c749c33e Auto merge of #13186 - weihanglo:cargo-util-schemas-error-types, r=epage
refactor: custom error types for `cargo-util-schemas`
2023-12-20 15:52:40 +00:00
Weihang Lo 0b0e78fa3f
chore: bump cargo-util-schemas to 0.2.0 2023-12-20 10:38:03 -05:00
Weihang Lo f9e726b056
refactor(util-schemas): make error enum private 2023-12-20 10:38:03 -05:00
Weihang Lo a0201cd465
refactor(util-schemas): make fn in restricted_names crate private
pub
2023-12-20 10:38:02 -05:00
Weihang Lo d1e1c3d0aa
refactor(util-schemas): remove unused arg 2023-12-20 10:38:02 -05:00
Weihang Lo f1216495bb
refactor(util-schemas): remove anyhow 2023-12-20 10:38:02 -05:00
Weihang Lo 1e577614c5
refactor(util-schemas): error type for PackageIdSpec 2023-12-20 10:38:02 -05:00
Weihang Lo a3267bfa29
refactor(util-schemas): error type for restricted_names 2023-12-20 10:38:02 -05:00
bors c21be2b7cf Auto merge of #13168 - leonzchang:handlebars-v4, r=epage
chore(deps): update rust crate handlebars to `v4.5.0`

In the latest version of `handlebars`, rules for whitespace auto elimination is to check if the directive `{{# xxx}}`` and ``{{/ xxx}}` is holding a whole line, with leading and trailing whitespaces counted, and then remove the trailing NEWLINE (See [`template.rs`](9d7d555628/src/template.rs (L568-L889))).

```md
{{#options}}
                              <--- this newline will be removed after a standalone block
{{#option "`-o` _outdir_"}}
                              <--- this newline will be removed
Some content

{{/option}}
                              <--- this newline will be removed
{{/options}}
                              <--- this newline will be removed
```

This PR changes includes (fixes #13162):
1. update `handlebars` crate to `v4.5.0`.
2. add extra NEWLINE to helper blocks `options`, `option` to align with the new strip rules, preserving the original behavior.
3. update doc(the rest handlebars expression) to align with the new strip rules..
2023-12-20 14:52:29 +00:00
bors 9a77459f01 Auto merge of #12509 - hi-rustin:rustin-patch-revert, r=weihanglo
Hold the mutate exclusive lock when vendoring
2023-12-20 06:13:36 +00:00
leonzchang b96b244c28
update handlebars & fix tests & update doc 2023-12-20 11:12:49 +08:00
Weihang Lo 90017c0747
refactor(util-schemas): error type for RustVerion 2023-12-19 18:28:01 -05:00
Weihang Lo d7b811b686
refactor(util-schemas): error type for PartialVersion 2023-12-19 18:28:01 -05:00
Weihang Lo da6cf9cde2
refactor(util-schemas): add thiserror 2023-12-19 03:34:35 -05:00
bors 69255bb10d Auto merge of #13184 - weihanglo:ws-homepage, r=epage
refactor: clean up package metadata

Like #12352 but for `homepage` and `repository`.

Inspired by <https://github.com/rust-lang/cargo/pull/13178#discussion_r1429394873>.
2023-12-18 22:12:59 +00:00
Weihang Lo 8a762b89b9
refactor: link homepage to The Cargo Book for main cargo crate 2023-12-18 16:09:08 -05:00
Weihang Lo ad2c45bde9
refactor: clean up package metadata
Like PR 12352 but for homepage and repository

Versions for

* `cargo-credential-1password`
* `cargo-util-schemas`
* `home`

are bumped along with the change.
2023-12-18 16:09:03 -05:00
bors a1f6e78c53 Auto merge of #13185 - weihanglo:bump-check-cargo-util-schemas, r=epage
ci: check SemVer for cargo-util-schemas on CI
2023-12-18 21:03:03 +00:00
Weihang Lo 0ac9cdeeec
ci: check SemVer for cargo-util-schemas on CI 2023-12-18 15:56:13 -05:00
bors 881d79061a Auto merge of #13178 - epage:schemas, r=weihanglo
refactor(schemas): Pull out as `cargo-util-schemas`

### What does this PR try to resolve?

Fixes #12801

### How should we test and review this PR?

See the individual commits for further justifications on the changes

### Additional information
2023-12-18 18:03:01 +00:00
bors 9c1316ff3f Auto merge of #13181 - hi-rustin:rustin-patch-rename-files, r=weihanglo
chore(rustfix): rename Readme.md to README.md
2023-12-18 15:04:01 +00:00
bors a8a432fadc Auto merge of #13182 - hi-rustin:rustin-patch-rustfix-typos, r=weihanglo
chore(rustfix): remove useless clippy rules and fix a typo
2023-12-18 14:33:24 +00:00
hi-rustin 0b6c229e9d chore(rustfix): remove useless clippy rules
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-18 20:17:05 +08:00
hi-rustin b8e2f75881 chore(rustfix): fix a typo
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-18 20:10:28 +08:00
hi-rustin efdaf4bbc6 chore(rustfix): rename Changelog.md to CHANGELOG.md
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-18 20:05:52 +08:00
hi-rustin 88993a3bbe chore(rustfix): rename Readme.md to README.md
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-18 20:04:50 +08:00
hi-rustin 2e77dc148b fix(vendor): use mutate exclusive lock when vendoring
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-18 09:47:08 +08:00
bors 1a2666ddd1 Auto merge of #13179 - weihanglo:opensslv1.1.1, r=ehuss
chore: downgrade to openssl v1.1.1

riscv64 detection bug is fixed but is not released (openssl/openssl#22871)
See also https://github.com/rust-lang/rust/pull/119007#issuecomment-1859231819
2023-12-17 17:53:53 +00:00
Weihang Lo 62bf43294f
chore: downgrade to openssl v1.1.1
riscv64 detection bug is fixed but is not released (openssl/openssl#22871)
See also https://github.com/rust-lang/rust/pull/119007#issuecomment-1859231819
2023-12-17 12:37:13 -05:00
Ed Page 633929d3aa refactor(schemas): Pull out cargo-util-schemas crate
Fixes #12801
2023-12-15 13:22:25 -06:00
Ed Page 1b6d8646dd refactor(sources): Don't impl on schema types 2023-12-15 13:22:19 -06:00
Ed Page 370cd35434 refactor(schema): Move PartialVersion into schemas 2023-12-15 13:05:13 -06:00
Ed Page 19bcb3b1ae refactor(util): Move VersionExt back into main cargo crate
This is a partial revert of 2b2502f7fc

These were pulled out with the idea of being a place to house
`PartialVersion` for `util_schemas` to use.
Since then, we went with a `util_schemas::core` in #13128,
meaning we can hold off on creating yet another crate for us to manage.
2023-12-15 12:56:46 -06:00
bors 37bc5f0232 Auto merge of #13177 - dallenng:home-changelog, r=epage
docs(home): prepare the changelog for 0.5.9

Fixes #13165
2023-12-15 18:33:31 +00:00
Ed Page c7bcc6c199
docs(home): Set release date 2023-12-15 12:32:15 -06:00