sanchit
61f6248a07
add test expecting failure: adding features from git repo w multiple packages
2023-12-29 04:54:50 +05:30
LongYinan
7aaf2752ad
Add cargo:rustc-cdylib-link-arg into RESERVED_PREFIXES list
2023-12-28 11:28:22 +08:00
bors
1f70597241
Auto merge of #13203 - linyihai:subcommand-doc, r=weihanglo
...
chore(doc): doc for custom subcommands look up.
### What does this PR try to resolve?
as the https://github.com/rust-lang/cargo/issues/13194 metions, the lookup rules for custom subcommands are only reflected in comments inside the code, and it is time to inform users of this behavior through documentation.
### How should we test and review this PR?
### Additional information
2023-12-27 12:07:18 +00:00
bors
ac6bbb3329
Auto merge of #13209 - weihanglo:link, r=epage
...
docs: fix link to nightly doc of cargo-util-schemas
should be https://doc.rust-lang.org/nightly/nightly-rustc/cargo_util_schemas/
2023-12-26 23:22:08 +00:00
bors
d711ac06c1
Auto merge of #13206 - shivdhar:patch-1, r=weihanglo
...
doc: improve word usage
2023-12-26 22:38:22 +00:00
Weihang Lo
79f09db818
docs: fix link to nightly doc of cargo-util-schemas
...
https://doc.rust-lang.org/nightly/nightly-rustc/cargo_util_schemas/
2023-12-26 11:41:24 -05:00
bors
308ceee7fa
Auto merge of #13205 - weihanglo:install, r=hi-rustin
...
fix: clarify `--path` is the installation source not destination
### What does this PR try to resolve?
There is a misunderstanding of “default location” mentioned in `cargo install --help`.
I don't think one-line explanation helps much there, So remove that imprecise description.
This PR also add more "from" for places mentioning installation sources.
### How should we test and review this PR?
Read the new help text.
2023-12-26 16:17:54 +00:00
Weihang Lo
eb8870f098
docs(cargo-install): clarify default location is about "sources"
2023-12-26 10:42:57 -05:00
Weihang Lo
48cffc6729
fix(cargo-install): clarify --path
is installation source
2023-12-26 10:42:57 -05:00
Weihang Lo
14ef091bd0
fix(cargo-install): remove imprecise install root descriptions
2023-12-26 10:42:57 -05:00
Lin Yihai
d71b2bc5df
chore(doc): doc for custom subcommands
2023-12-26 14:19:48 +08:00
Shiv Dhar
d148d690e9
doc: improve word usage
2023-12-26 02:40:08 +05:30
bors
4e792c2858
Auto merge of #13202 - hi-rustin:rustin-patch-spec-example, r=weihanglo
...
refactor: give some better examples for package ID spec
2023-12-25 14:51:31 +00:00
hi-rustin
ad18dd017b
refactor: give some better examples for package ID spec
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-25 10:08:27 +08:00
bors
c2408a712e
Auto merge of #13201 - hi-rustin:rustin-patch-build-script-typo, r=weihanglo
...
chore: fix a typo
2023-12-25 02:03:27 +00:00
hi-rustin
1687fb8513
chore: fix a typo
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-25 09:39:44 +08:00
bors
d45969a781
Auto merge of #12201 - hi-rustin:rustin-patch-build-script, r=epage
...
Extend the build directive syntax with `cargo::`
2023-12-24 03:06:43 +00:00
hi-rustin
dec9e8cc1b
Add tests for msrv check
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:24:53 +08:00
hi-rustin
0e42a8ae6d
Add msrv check for new syntax
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:24:46 +08:00
hi-rustin
a76564b9ba
Update the dirty reason message
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:17:55 +08:00
hi-rustin
eac79ec152
Update other docs to use cargo::
syntax
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2023-12-23 13:17:55 +08:00
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