File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -100,18 +100,18 @@ impl Default for BuildOptions {
100
100
impl BuildOptions {
101
101
/// Tries to fill the missing metadata for a BuildContext by querying cargo and python
102
102
pub fn into_build_context ( self , release : bool , strip : bool ) -> Result < BuildContext > {
103
- let manifest_file = self
104
- . manifest_path
105
- . canonicalize ( )
106
- . context ( format_err ! ( "Can't find {}" , self . manifest_path . display ( ) ) ) ? ;
103
+ let manifest_file = & self . manifest_path ;
104
+ if !manifest_file . exists ( ) {
105
+ bail ! ( "Can't find {}" , self . manifest_path . display ( ) , ) ;
106
+ }
107
107
108
108
if !manifest_file. is_file ( ) {
109
109
bail ! (
110
110
"{} (resolved to {}) is not the path to a Cargo.toml" ,
111
111
self . manifest_path. display( ) ,
112
112
manifest_file. display( )
113
113
) ;
114
- } ;
114
+ }
115
115
116
116
let cargo_toml = CargoToml :: from_path ( & manifest_file) ?;
117
117
let manifest_dir = manifest_file. parent ( ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ name = "hello-world"
3
3
version = " 0.1.0"
4
4
authors = [" konstin <konstin@mailbox.org>" ]
5
5
edition = " 2018"
6
+ readme = " ../../Readme.md"
6
7
7
8
[dependencies ]
You can’t perform that action at this time.
0 commit comments