aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
20
akode-rs/app-server-protocol-noop-macros/src/lib.rs
Normal file
20
akode-rs/app-server-protocol-noop-macros/src/lib.rs
Normal file
@@ -0,0 +1,20 @@
|
||||
//! No-op schema derives for production app-server protocol builds.
|
||||
//!
|
||||
//! The real `ts-rs` and `schemars` derives are only needed when regenerating
|
||||
//! the vendored protocol exports. Normal builds retain the annotations so the
|
||||
//! protocol definitions stay readable, but use these derives to avoid
|
||||
//! generating implementations that cannot be reached at runtime.
|
||||
|
||||
use proc_macro::TokenStream;
|
||||
|
||||
/// Accepts `#[schemars(...)]` helper attributes without generating an impl.
|
||||
#[proc_macro_derive(JsonSchema, attributes(schemars))]
|
||||
pub fn derive_json_schema(_input: TokenStream) -> TokenStream {
|
||||
TokenStream::new()
|
||||
}
|
||||
|
||||
/// Accepts `#[ts(...)]` helper attributes without generating an impl.
|
||||
#[proc_macro_derive(TS, attributes(ts))]
|
||||
pub fn derive_ts(_input: TokenStream) -> TokenStream {
|
||||
TokenStream::new()
|
||||
}
|
||||
Reference in New Issue
Block a user