From b7532e89c2a254764108051721a2a91d2e1d60e5 Mon Sep 17 00:00:00 2001 From: lbl8603 <49143209+lbl8603@users.noreply.github.com> Date: Tue, 28 May 2024 22:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E6=9D=A1=E4=BB=B6=E7=BC=96?= =?UTF-8?q?=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/build.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vnt/build.rs b/vnt/build.rs index 8e9f1ab..5dd2e36 100644 --- a/vnt/build.rs +++ b/vnt/build.rs @@ -1,4 +1,17 @@ +use cfg_aliases::cfg_aliases; + 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(); protobuf_codegen::Codegen::new() .pure()