Skip to content

Commit c5b9e04

Browse files
author
Mikachu2333
committed
add rawstr4c
1 parent 221f4da commit c5b9e04

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

src/recipe/lang/rawstr4c.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -75,34 +75,11 @@ allprojects {
7575

7676
```toml
7777
[source.crates-io]
78-
replace-with = 'mirror'
78+
replace-with = "mirror"
7979

8080
[source.mirror]
8181
registry = "sparse+@url@"
82-
```
83-
84-
### cargo check config
85-
86-
- name = `cargo_check_config`
87-
88-
```bash
89-
grep -q '^\[source\.crates-io\]' @f@
90-
```
91-
92-
### cargo update replace-with
93-
94-
- name = `cargo_update_replace_with`
95-
96-
```bash
97-
@sed@ '/^\[source\.crates-io\]$/,/^\[/{s/^replace-with = .*/replace-with = "mirror"/}' @f@
98-
```
99-
100-
### cargo update registry
101-
102-
- name = `cargo_update_registry`
10382

104-
```bash
105-
@sed@ '/^\[source\.mirror\]$/,/^\[/{s|^registry = .*|registry = "sparse+@url@"|}' @f@
10683
```
10784

10885
<br>

0 commit comments

Comments
 (0)