@@ -26,10 +26,16 @@ use crate::{
2626 option:: { validation, Compression , Mode } ,
2727} ;
2828
29- #[ cfg( all( target_os = "linux" , target_arch = "x86_64" ) ) ]
29+ #[ cfg( any(
30+ all( target_os = "linux" , target_arch = "x86_64" ) ,
31+ all( target_os = "macos" , target_arch = "aarch64" )
32+ ) ) ]
3033use crate :: kafka:: SslProtocol as KafkaSslProtocol ;
3134
32- #[ cfg( not( all( target_os = "linux" , target_arch = "x86_64" ) ) ) ]
35+ #[ cfg( not( any(
36+ all( target_os = "linux" , target_arch = "x86_64" ) ,
37+ all( target_os = "macos" , target_arch = "aarch64" )
38+ ) ) ) ]
3339use std:: string:: String as KafkaSslProtocol ;
3440
3541#[ derive( Debug , Default ) ]
@@ -507,7 +513,10 @@ impl FromArgMatches for Cli {
507513 }
508514
509515 fn update_from_arg_matches ( & mut self , m : & clap:: ArgMatches ) -> Result < ( ) , clap:: Error > {
510- #[ cfg( all( target_os = "linux" , target_arch = "x86_64" ) ) ]
516+ #[ cfg( any(
517+ all( target_os = "linux" , target_arch = "x86_64" ) ,
518+ all( target_os = "macos" , target_arch = "aarch64" )
519+ ) ) ]
511520 {
512521 self . kafka_topics = m. get_one :: < String > ( Self :: KAFKA_TOPICS ) . cloned ( ) ;
513522 self . kafka_security_protocol = m
0 commit comments