File tree 3 files changed +35
-7
lines changed
ci/remove-dev-dependencies
3 files changed +35
-7
lines changed Original file line number Diff line number Diff line change @@ -64,17 +64,26 @@ matrix:
64
64
script :
65
65
- cargo build --manifest-path futures/Cargo.toml --features io-compat
66
66
67
- # Allow build fail until #1396 is fixed.
68
67
- name : cargo build --target=thumbv6m-none-eabi
69
68
rust : nightly
70
- env : ALLOW_FAILURES=true
71
69
install :
72
70
- rustup target add thumbv6m-none-eabi
73
71
script :
72
+ - cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml */Cargo.toml
74
73
- cargo build --manifest-path futures/Cargo.toml
75
74
--target thumbv6m-none-eabi
76
75
--no-default-features
77
- --features nightly
76
+ --features nightly,cfg-target-has-atomic
77
+
78
+ - name : cargo build --target=thumbv7m-none-eabi
79
+ rust : nightly
80
+ install :
81
+ - rustup target add thumbv7m-none-eabi
82
+ script :
83
+ - cargo run --manifest-path ci/remove-dev-dependencies/Cargo.toml */Cargo.toml
84
+ - cargo build --manifest-path futures/Cargo.toml
85
+ --target thumbv7m-none-eabi
86
+ --no-default-features
78
87
79
88
- name : cargo doc
80
89
rust : nightly
@@ -102,10 +111,6 @@ matrix:
102
111
- git commit -m "Add API docs for $TRAVIS_TAG"
103
112
- git push origin master
104
113
105
- allow_failures :
106
- - rust : nightly
107
- env : ALLOW_FAILURES=true
108
-
109
114
script :
110
115
- cargo test --all --all-features
111
116
- cargo test --all --all-features --release
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " remove-dev-dependencies"
3
+ version = " 0.1.0"
4
+ authors = [
" Wim Looman <[email protected] >" ]
5
+ edition = " 2018"
6
+ publish = false
7
+
8
+ [workspace ]
9
+
10
+ [dependencies ]
11
+ toml_edit = " 0.1.3"
Original file line number Diff line number Diff line change
1
+ use std:: { env, error:: Error , fs} ;
2
+
3
+ fn main ( ) -> Result < ( ) , Box < dyn Error > > {
4
+ for file in env:: args ( ) . skip ( 1 ) {
5
+ let content = fs:: read_to_string ( & file) ?;
6
+ let mut doc: toml_edit:: Document = content. parse ( ) ?;
7
+ doc. as_table_mut ( ) . remove ( "dev-dependencies" ) ;
8
+ fs:: write ( file, doc. to_string ( ) ) ?;
9
+ }
10
+
11
+ Ok ( ( ) )
12
+ }
You can’t perform that action at this time.
0 commit comments