Skip to content

Commit

Permalink
address pheobe's review
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Jul 20, 2023
1 parent 9e0000d commit 2fef285
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/bindings-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ mod sym {
/// | index(btree | hash [, name = string] [, field_name:ident]*)
/// ```
///
/// Note that using `#[autoinc]` on a field
/// does not also imply `#[primarykey]` or `#[unique]`.
/// If those semantics are desired, those attributes should also be used.
/// For description of the field attributes on `#[spacetimedb(table)]` structs,
/// see [`TableType`](spacetimedb_tabletype).
#[proc_macro_attribute]
pub fn spacetimedb(macro_args: proc_macro::TokenStream, item: proc_macro::TokenStream) -> proc_macro::TokenStream {
let item: TokenStream = item.into();
Expand Down Expand Up @@ -482,6 +481,9 @@ fn spacetimedb_table(item: TokenStream) -> syn::Result<TokenStream> {
/// the sequence is incremented, and this value is used instead.
/// Can only be used on numeric types and may be combined with indexes.
///
/// Note that using `#[autoinc]` on a field does not also imply `#[primarykey]` or `#[unique]`.
/// If those semantics are desired, those attributes should also be used.
///
/// * `#[unique]`
///
/// Creates an index and unique constraint for the annotated field.
Expand Down

0 comments on commit 2fef285

Please sign in to comment.