Skip to content

Commit

Permalink
update crate metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
acovaci committed May 17, 2024
1 parent 2ea846e commit 1dc06f7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 38 deletions.
32 changes: 1 addition & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 21 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@
name = "expand_array"
version = "0.1.0"
edition = "2021"
license = "MPL-2.0"
description = "Macro to convert a static array to a fixed-size array"
readme = "README.md"
repository = "https://github.com/acovaci/expand-array-rust-macro"
keywords = [
"macro",
"array",
"static",
"dll",
"global",
"fixed",
"size",
"expand",
"proc-macro",
"proc_macro_2",
"syn",
"quote",
]
categories = ["development-tools::ffi", "rust-patterns"]


[lib]
crate-type = ["proc-macro"]
Expand All @@ -10,8 +30,6 @@ proc-macro = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
lazy_static = "1.4.0"
proc-macro2 = "1.0.82"
quote = "1.0.36"
syn = { version = "2.0.61", features = ["full", "extra-traits"] }
trait-set = "0.3.0"
syn = { version = "2.0.61", features = ["full"] }
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Expand Array Rust Macro

This project is a simple macro that allows you to expand an array into a list of
arguments. This is useful when you need to make available global constants in a
dynamic library, for example.
This crate provides a macro to convert a static array to a fixed-size array.
Limited type conversion is supported. This is useful when you need to make
available global constants in a dynamic library, for example.

## Limitations

Expand Down
2 changes: 1 addition & 1 deletion src/parse/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::types::{Array, ArrayDefinition, RustType};

use super::interface::IntoTokens;

#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct ArrayTokenizer {
array: syn::Expr,
}
Expand Down

0 comments on commit 1dc06f7

Please sign in to comment.