删除 rawstr4c 多余的rust常量

This commit is contained in:
Mikachu2333
2025-10-01 15:59:44 +08:00
committed by 曾奥然
parent 0ff604060d
commit e335d34eee
2 changed files with 2 additions and 31 deletions

View File

@@ -75,34 +75,11 @@ allprojects {
```toml
[source.crates-io]
replace-with = 'mirror'
replace-with = "mirror"
[source.mirror]
registry = "sparse+@url@"
```
### cargo check config
- name = `cargo_check_config`
```bash
grep -q '^\[source\.crates-io\]' @f@
```
### cargo update replace-with
- name = `cargo_update_replace_with`
```bash
@sed@ '/^\[source\.crates-io\]$/,/^\[/{s/^replace-with = .*/replace-with = "mirror"/}' @f@
```
### cargo update registry
- name = `cargo_update_registry`
```bash
@sed@ '/^\[source\.mirror\]$/,/^\[/{s|^registry = .*|registry = "sparse+@url@"|}' @f@
```
<br>