mirror of
https://github.com/wisdgod/cursor-api.git
synced 2025-10-05 22:56:54 +08:00
14 lines
352 B
Rust
14 lines
352 B
Rust
//! This build script allows us to enable the `read_buf` language feature only
|
|
//! for Rust Nightly.
|
|
//!
|
|
//! See the comment in lib.rs to understand why we need this.
|
|
|
|
#[cfg_attr(feature = "read_buf", rustversion::not(nightly))]
|
|
fn main() {}
|
|
|
|
#[cfg(feature = "read_buf")]
|
|
#[rustversion::nightly]
|
|
fn main() {
|
|
println!("cargo:rustc-cfg=read_buf");
|
|
}
|