@@ -23,7 +23,8 @@ fn simple() {
23
23
license = "MIT"
24
24
description = "foo"
25
25
"# ,
26
- ) . file ( "src/main.rs" , "fn main() {}" )
26
+ )
27
+ . file ( "src/main.rs" , "fn main() {}" )
27
28
. build ( ) ;
28
29
29
30
p. cargo ( "publish --no-verify --index" )
@@ -96,7 +97,8 @@ fn old_token_location() {
96
97
license = "MIT"
97
98
description = "foo"
98
99
"# ,
99
- ) . file ( "src/main.rs" , "fn main() {}" )
100
+ )
101
+ . file ( "src/main.rs" , "fn main() {}" )
100
102
. build ( ) ;
101
103
102
104
p. cargo ( "publish --no-verify --index" )
@@ -162,7 +164,8 @@ fn simple_with_host() {
162
164
license = "MIT"
163
165
description = "foo"
164
166
"# ,
165
- ) . file ( "src/main.rs" , "fn main() {}" )
167
+ )
168
+ . file ( "src/main.rs" , "fn main() {}" )
166
169
. build ( ) ;
167
170
168
171
p. cargo ( "publish --no-verify --host" )
@@ -237,7 +240,8 @@ fn simple_with_index_and_host() {
237
240
license = "MIT"
238
241
description = "foo"
239
242
"# ,
240
- ) . file ( "src/main.rs" , "fn main() {}" )
243
+ )
244
+ . file ( "src/main.rs" , "fn main() {}" )
241
245
. build ( ) ;
242
246
243
247
p. cargo ( "publish --no-verify --index" )
@@ -315,7 +319,8 @@ fn git_deps() {
315
319
[dependencies.foo]
316
320
git = "git://path/to/nowhere"
317
321
"# ,
318
- ) . file ( "src/main.rs" , "fn main() {}" )
322
+ )
323
+ . file ( "src/main.rs" , "fn main() {}" )
319
324
. build ( ) ;
320
325
321
326
p. cargo ( "publish -v --no-verify --index" )
@@ -351,7 +356,8 @@ fn path_dependency_no_version() {
351
356
[dependencies.bar]
352
357
path = "bar"
353
358
"# ,
354
- ) . file ( "src/main.rs" , "fn main() {}" )
359
+ )
360
+ . file ( "src/main.rs" , "fn main() {}" )
355
361
. file ( "bar/Cargo.toml" , & basic_manifest ( "bar" , "0.0.1" ) )
356
362
. file ( "bar/src/lib.rs" , "" )
357
363
. build ( ) ;
@@ -384,7 +390,8 @@ fn unpublishable_crate() {
384
390
description = "foo"
385
391
publish = false
386
392
"# ,
387
- ) . file ( "src/main.rs" , "fn main() {}" )
393
+ )
394
+ . file ( "src/main.rs" , "fn main() {}" )
388
395
. build ( ) ;
389
396
390
397
p. cargo ( "publish --index" )
@@ -417,7 +424,8 @@ fn dont_publish_dirty() {
417
424
homepage = "foo"
418
425
repository = "foo"
419
426
"# ,
420
- ) . file ( "src/main.rs" , "fn main() {}" )
427
+ )
428
+ . file ( "src/main.rs" , "fn main() {}" )
421
429
. build ( ) ;
422
430
423
431
p. cargo ( "publish --index" )
@@ -456,7 +464,8 @@ fn publish_clean() {
456
464
homepage = "foo"
457
465
repository = "foo"
458
466
"# ,
459
- ) . file ( "src/main.rs" , "fn main() {}" )
467
+ )
468
+ . file ( "src/main.rs" , "fn main() {}" )
460
469
. build ( ) ;
461
470
462
471
p. cargo ( "publish --index" )
@@ -484,7 +493,8 @@ fn publish_in_sub_repo() {
484
493
homepage = "foo"
485
494
repository = "foo"
486
495
"# ,
487
- ) . file ( "bar/src/main.rs" , "fn main() {}" )
496
+ )
497
+ . file ( "bar/src/main.rs" , "fn main() {}" )
488
498
. build ( ) ;
489
499
490
500
p. cargo ( "publish" )
@@ -514,7 +524,8 @@ fn publish_when_ignored() {
514
524
homepage = "foo"
515
525
repository = "foo"
516
526
"# ,
517
- ) . file ( "src/main.rs" , "fn main() {}" )
527
+ )
528
+ . file ( "src/main.rs" , "fn main() {}" )
518
529
. file ( ".gitignore" , "baz" )
519
530
. build ( ) ;
520
531
@@ -594,7 +605,8 @@ fn dry_run() {
594
605
license = "MIT"
595
606
description = "foo"
596
607
"# ,
597
- ) . file ( "src/main.rs" , "fn main() {}" )
608
+ )
609
+ . file ( "src/main.rs" , "fn main() {}" )
598
610
. build ( ) ;
599
611
600
612
p. cargo ( "publish --dry-run --index" )
@@ -635,7 +647,8 @@ fn block_publish_feature_not_enabled() {
635
647
"test"
636
648
]
637
649
"# ,
638
- ) . file ( "src/main.rs" , "fn main() {}" )
650
+ )
651
+ . file ( "src/main.rs" , "fn main() {}" )
639
652
. build ( ) ;
640
653
641
654
p. cargo ( "publish --registry alternative -Zunstable-options" )
@@ -676,7 +689,8 @@ fn registry_not_in_publish_list() {
676
689
"test"
677
690
]
678
691
"# ,
679
- ) . file ( "src/main.rs" , "fn main() {}" )
692
+ )
693
+ . file ( "src/main.rs" , "fn main() {}" )
680
694
. build ( ) ;
681
695
682
696
p. cargo ( "publish" )
@@ -711,7 +725,8 @@ fn publish_empty_list() {
711
725
description = "foo"
712
726
publish = []
713
727
"# ,
714
- ) . file ( "src/main.rs" , "fn main() {}" )
728
+ )
729
+ . file ( "src/main.rs" , "fn main() {}" )
715
730
. build ( ) ;
716
731
717
732
p. cargo ( "publish --registry alternative -Zunstable-options" )
@@ -747,7 +762,8 @@ fn publish_allowed_registry() {
747
762
homepage = "foo"
748
763
publish = ["alternative"]
749
764
"# ,
750
- ) . file ( "src/main.rs" , "fn main() {}" )
765
+ )
766
+ . file ( "src/main.rs" , "fn main() {}" )
751
767
. build ( ) ;
752
768
753
769
p. cargo ( "publish --registry alternative -Zunstable-options" )
@@ -773,7 +789,8 @@ fn block_publish_no_registry() {
773
789
description = "foo"
774
790
publish = []
775
791
"# ,
776
- ) . file ( "src/main.rs" , "fn main() {}" )
792
+ )
793
+ . file ( "src/main.rs" , "fn main() {}" )
777
794
. build ( ) ;
778
795
779
796
p. cargo ( "publish --registry alternative -Zunstable-options" )
@@ -809,7 +826,8 @@ fn publish_with_select_features() {
809
826
required = []
810
827
optional = []
811
828
"# ,
812
- ) . file (
829
+ )
830
+ . file (
813
831
"src/main.rs" ,
814
832
"#[cfg(not(required))]
815
833
compile_error!(\" This crate requires `required` feature!\" );
@@ -849,7 +867,8 @@ fn publish_with_all_features() {
849
867
required = []
850
868
optional = []
851
869
"# ,
852
- ) . file (
870
+ )
871
+ . file (
853
872
"src/main.rs" ,
854
873
"#[cfg(not(required))]
855
874
compile_error!(\" This crate requires `required` feature!\" );
0 commit comments