@@ -15,6 +15,7 @@ use url::Url;
15
15
16
16
use crate :: core:: dependency:: DepKind ;
17
17
use crate :: core:: manifest:: { ManifestMetadata , TargetSourcePath , Warnings } ;
18
+ use crate :: core:: profiles:: Strip ;
18
19
use crate :: core:: resolver:: ResolveBehavior ;
19
20
use crate :: core:: { Dependency , InternedString , Manifest , PackageId , Summary , Target } ;
20
21
use crate :: core:: { Edition , EitherManifest , Feature , Features , VirtualManifest , Workspace } ;
@@ -407,7 +408,7 @@ pub struct TomlProfile {
407
408
pub build_override : Option < Box < TomlProfile > > ,
408
409
pub dir_name : Option < InternedString > ,
409
410
pub inherits : Option < InternedString > ,
410
- pub strip : Option < InternedString > ,
411
+ pub strip : Option < Strip > ,
411
412
}
412
413
413
414
#[ derive( Clone , Debug , PartialEq , Eq , Ord , PartialOrd , Hash ) ]
@@ -524,15 +525,8 @@ impl TomlProfile {
524
525
}
525
526
}
526
527
527
- if let Some ( strip ) = & self . strip {
528
+ if self . strip . is_some ( ) {
528
529
features. require ( Feature :: strip ( ) ) ?;
529
- if strip != "debuginfo" && strip != "none" && strip != "symbols" {
530
- bail ! (
531
- "`strip` setting of `{}` is not a valid setting,\
532
- must be `debuginfo`, `none` or `symbols`",
533
- strip
534
- ) ;
535
- }
536
530
}
537
531
Ok ( ( ) )
538
532
}
0 commit comments