File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -258,10 +258,6 @@ enum BuildSubcommand {
258
258
#[ structopt( name = "CRATE_VERSION" ) ]
259
259
crate_version : Option < String > ,
260
260
261
- /// Url for registry different from cratesio
262
- #[ structopt( name = "CRATE_REGISTRY" ) ]
263
- crate_registry : Option < String > ,
264
-
265
261
/// Build a crate at a specific path
266
262
#[ structopt(
267
263
short = "l" ,
@@ -308,7 +304,6 @@ impl BuildSubcommand {
308
304
Self :: Crate {
309
305
crate_name,
310
306
crate_version,
311
- crate_registry,
312
307
local,
313
308
} => {
314
309
let mut builder = rustwide_builder ( ) ?;
@@ -318,12 +313,13 @@ impl BuildSubcommand {
318
313
. build_local_package ( & path)
319
314
. context ( "Building documentation failed" ) ?;
320
315
} else {
316
+ let registry_url = ctx. config ( ) ?. registry_url . clone ( ) ;
321
317
builder
322
318
. build_package (
323
319
& crate_name. ok_or_else ( || err_msg ( "must specify name if not local" ) ) ?,
324
320
& crate_version
325
321
. ok_or_else ( || err_msg ( "must specify version if not local" ) ) ?,
326
- crate_registry
322
+ registry_url
327
323
. as_ref ( )
328
324
. map ( |s| PackageKind :: Registry ( s. as_str ( ) ) )
329
325
. unwrap_or ( PackageKind :: CratesIo ) ,
You can’t perform that action at this time.
0 commit comments