We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64c69df commit cf621fdCopy full SHA for cf621fd
tests/testsuite/publish.rs
@@ -185,6 +185,32 @@ See [..]
185
validate_upload_foo();
186
}
187
188
+#[cargo_test]
189
+fn simple_with_index() {
190
+ registry::init();
191
+
192
+ let p = project()
193
+ .file(
194
+ "Cargo.toml",
195
+ r#"
196
+ [project]
197
+ name = "foo"
198
+ version = "0.0.1"
199
+ authors = []
200
+ license = "MIT"
201
+ description = "foo"
202
+ "#,
203
+ )
204
+ .file("src/main.rs", "fn main() {}")
205
+ .build();
206
207
+ p.cargo("publish --no-verify --token sekrit --index")
208
+ .arg(registry_url().to_string())
209
+ .run();
210
211
+ validate_upload_foo();
212
+}
213
214
#[cargo_test]
215
fn git_deps() {
216
registry::init();
0 commit comments