@@ -3,9 +3,9 @@ use std::fmt::Write;
3
3
use std:: path:: PathBuf ;
4
4
use std:: sync:: Arc ;
5
5
6
- use cratesfyi :: db:: { self , add_path_into_database, Pool , PoolClient } ;
7
- use cratesfyi :: utils:: { remove_crate_priority, set_crate_priority} ;
8
- use cratesfyi :: {
6
+ use docs_rs :: db:: { self , add_path_into_database, Pool , PoolClient } ;
7
+ use docs_rs :: utils:: { remove_crate_priority, set_crate_priority} ;
8
+ use docs_rs :: {
9
9
BuildQueue , Config , Context , DocBuilder , Index , Metrics , RustwideBuilder , Server , Storage ,
10
10
} ;
11
11
use failure:: { err_msg, Error , ResultExt } ;
@@ -33,7 +33,7 @@ pub fn main() {
33
33
fn logger_init ( ) {
34
34
use std:: io:: Write ;
35
35
36
- let env = env_logger:: Env :: default ( ) . filter_or ( "DOCSRS_LOG" , "cratesfyi =info" ) ;
36
+ let env = env_logger:: Env :: default ( ) . filter_or ( "DOCSRS_LOG" , "docs_rs =info" ) ;
37
37
let logger = env_logger:: from_env ( env)
38
38
. format ( |buf, record| {
39
39
writeln ! (
@@ -61,7 +61,7 @@ enum Toggle {
61
61
#[ structopt(
62
62
name = "cratesfyi" ,
63
63
about = env!( "CARGO_PKG_DESCRIPTION" ) ,
64
- version = cratesfyi :: BUILD_VERSION ,
64
+ version = docs_rs :: BUILD_VERSION ,
65
65
rename_all = "kebab-case" ,
66
66
) ]
67
67
enum CommandLine {
@@ -125,7 +125,7 @@ impl CommandLine {
125
125
log:: warn!( "--foreground was passed, but there is no need for it anymore" ) ;
126
126
}
127
127
128
- cratesfyi :: utils:: start_daemon ( & ctx, registry_watcher == Toggle :: Enabled ) ?;
128
+ docs_rs :: utils:: start_daemon ( & ctx, registry_watcher == Toggle :: Enabled ) ?;
129
129
}
130
130
Self :: Database { subcommand } => subcommand. handle_args ( ctx) ?,
131
131
Self :: Queue { subcommand } => subcommand. handle_args ( ctx) ?,
@@ -412,7 +412,7 @@ impl DatabaseSubcommand {
412
412
}
413
413
414
414
Self :: UpdateGithubFields => {
415
- cratesfyi :: utils:: GithubUpdater :: new ( & * ctx. config ( ) ?, ctx. pool ( ) ?) ?
415
+ docs_rs :: utils:: GithubUpdater :: new ( & * ctx. config ( ) ?, ctx. pool ( ) ?) ?
416
416
. update_all_crates ( ) ?;
417
417
}
418
418
@@ -433,7 +433,7 @@ impl DatabaseSubcommand {
433
433
434
434
// FIXME: This is actually util command not database
435
435
Self :: UpdateReleaseActivity => {
436
- cratesfyi :: utils:: update_release_activity ( & mut * ctx. conn ( ) ?)
436
+ docs_rs :: utils:: update_release_activity ( & mut * ctx. conn ( ) ?)
437
437
. context ( "Failed to update release activity" ) ?
438
438
}
439
439
@@ -448,11 +448,7 @@ impl DatabaseSubcommand {
448
448
Self :: Blacklist { command } => command. handle_args ( ctx) ?,
449
449
450
450
Self :: Synchronize { dry_run } => {
451
- cratesfyi:: utils:: consistency:: run_check (
452
- & mut * ctx. conn ( ) ?,
453
- & * ctx. index ( ) ?,
454
- dry_run,
455
- ) ?;
451
+ docs_rs:: utils:: consistency:: run_check ( & mut * ctx. conn ( ) ?, & * ctx. index ( ) ?, dry_run) ?;
456
452
}
457
453
}
458
454
Ok ( ( ) )
0 commit comments