Download codex-rs/app-server-protocol-noop-macros/src/lib.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 811 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-protocol-noop-macros/src/lib.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/app-server-protocol-noop-macros/src/lib.rs
-
curl -L -o lib.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-protocol-noop-macros/src/lib.rs
811 Bytes
| //! 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. | |
| pub fn derive_json_schema(_input: TokenStream) -> TokenStream { | |
| TokenStream::new() | |
| } | |
| /// Accepts `#[ts(...)]` helper attributes without generating an impl. | |
| pub fn derive_ts(_input: TokenStream) -> TokenStream { | |
| TokenStream::new() | |
| } | |