Skip to content

Commit 8f9789c

Browse files
committed
document limitations
1 parent 84379ef commit 8f9789c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
//! using [`Array`] with the syntax `[a, b, c]` and [`Options`](Option) that will be [`None`] if
2828
//! not specified and [`Some`] when the value is specified via the attribute. It is not
2929
//! specified via `Some(value)` but as just `value`.
30+
//!
31+
//! ## Limitations
32+
//!
33+
//! There are some limitations in syntax parsing that will be lifted future releases.
34+
//!
35+
//! - literals in top level (meaning something like `#[attr(42, 3.14, "hi")]`
36+
//! - function like arguments (something like `#[attr(view(a = "test"))]`
37+
//! - other syntaxes, maybe something like `key: value`
3038
use std::fmt::Display;
3139

3240
use proc_macro2::{Literal, Span};

0 commit comments

Comments
 (0)