简化条件编译
This commit is contained in:
@@ -1,4 +1,17 @@
|
|||||||
|
use cfg_aliases::cfg_aliases;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
cfg_aliases! {
|
||||||
|
cipher: {
|
||||||
|
any(feature = "aes_gcm",
|
||||||
|
feature = "chacha20_poly1305",
|
||||||
|
feature = "server_encrypt",
|
||||||
|
feature = "aes_cbc",
|
||||||
|
feature = "aes_ecb",
|
||||||
|
feature = "sm4_cbc"
|
||||||
|
)},
|
||||||
|
}
|
||||||
|
|
||||||
std::fs::create_dir_all("src/proto").unwrap();
|
std::fs::create_dir_all("src/proto").unwrap();
|
||||||
protobuf_codegen::Codegen::new()
|
protobuf_codegen::Codegen::new()
|
||||||
.pure()
|
.pure()
|
||||||
|
|||||||
Reference in New Issue
Block a user