Quantcast
Channel: Recent Gists from luqmana
Viewing all articles
Browse latest Browse all 41

Cargo.toml

$
0
0
Cargo.toml
[package]
name = "foo"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
lib.rs
/// My `foo` macro!
///
/// ```compile_fail
/// # #[macro_use] extern crate foo;
/// # fn main() {
/// foo!();
/// # }
/// ```
#[macro_export]
macro_rules! foo {
() => {
// invalid syntax
if{}
}
}

Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>