@@ -12,7 +12,9 @@ use tracing::level_filters::LevelFilter;
1212use tracing_subscriber:: EnvFilter ;
1313use tracing_subscriber:: layer:: SubscriberExt ;
1414use tracing_subscriber:: util:: SubscriberInitExt ;
15- use upki:: revocation:: { Index , Manifest , RevocationCheckInput , fetch} ;
15+ use upki:: revocation:: { Index , RevocationCheckInput } ;
16+ #[ cfg( feature = "__fetch" ) ]
17+ use upki:: revocation:: { Manifest , fetch} ;
1618use upki:: { Config , ConfigPath } ;
1719
1820#[ tokio:: main( flavor = "current_thread" ) ]
@@ -44,7 +46,9 @@ async fn main() -> Result<ExitCode, Report> {
4446 let config = Config :: from_file_or_user_default ( & config_path) ?;
4547
4648 Ok ( match args. command {
49+ #[ cfg( feature = "fetch" ) ]
4750 Command :: Fetch { dry_run } => fetch ( dry_run, & config) . await ?,
51+ #[ cfg( feature = "fetch" ) ]
4852 Command :: Verify => Manifest :: from_config ( & config) ?. verify ( & config) ?,
4953 Command :: ShowConfigPath => unreachable ! ( ) ,
5054 Command :: ShowConfig => {
@@ -93,6 +97,7 @@ enum Command {
9397 /// If the `revocation.cache_dir` path does not exist, this tool creates it and parent directories.
9498 ///
9599 /// This also deletes filters that become unreferenced.
100+ #[ cfg( feature = "__fetch" ) ]
96101 Fetch {
97102 /// Download the new manifest, and then describe what actions are needed to
98103 /// synchronize with the remote server.
@@ -107,6 +112,7 @@ enum Command {
107112 /// Exits non-zero if the manifest if any filter file is missing or corrupt.
108113 ///
109114 /// This command does no network I/O. It does not say anything whether the files are up-to-date or recent.
115+ #[ cfg( feature = "__fetch" ) ]
110116 Verify ,
111117
112118 /// Checks the revocation status of a certificate.
0 commit comments