Skip to content

Commit

Permalink
Rename cairo-lang-macro-interface to cairo-lang-macro (#1149)
Browse files Browse the repository at this point in the history
commit-id:405d4728

---

**Stack**:
- #1143
- #1148
- #1100
- #1110
- #1093
- #1091
- #1060
- #1149⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
  • Loading branch information
maciektr authored Feb 16, 2024
1 parent 39038bb commit 8bd3d8c
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
"extensions/scarb-cairo-test",
"extensions/scarb-snforge-test-collector",
"plugins/cairo-lang-macro-attributes",
"plugins/cairo-lang-macro-interface",
"plugins/cairo-lang-macro",
"utils/create-output-dir",
"utils/scarb-build-metadata",
"utils/scarb-test-support",
Expand Down
2 changes: 1 addition & 1 deletion plugins/cairo-lang-macro-attributes/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# cairo-lang-macro-interface
# cairo-lang-macro

Shared interface for Scarb procedural macros.
4 changes: 2 additions & 2 deletions plugins/cairo-lang-macro-attributes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ pub fn attribute_macro(_args: TokenStream, input: TokenStream) -> TokenStream {
#item

#[no_mangle]
pub unsafe extern "C" fn expand(token_stream: cairo_lang_macro_interface::stable_abi::StableTokenStream) -> cairo_lang_macro_interface::stable_abi::StableProcMacroResult {
pub unsafe extern "C" fn expand(token_stream: cairo_lang_macro::stable_abi::StableTokenStream) -> cairo_lang_macro::stable_abi::StableProcMacroResult {
let token_stream = token_stream.into_token_stream();
let result = #item_name(token_stream);
cairo_lang_macro_interface::stable_abi::StableProcMacroResult::from_proc_macro_result(result)
cairo_lang_macro::stable_abi::StableProcMacroResult::from_proc_macro_result(result)
}
};
TokenStream::from(expanded)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "cairo-lang-macro-interface"
name = "cairo-lang-macro"
version = "0.0.1"
edition.workspace = true

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# cairo-lang-macro-interface
# cairo-lang-macro

Shared interface for Scarb procedural macros.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scarb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ petgraph.workspace = true
redb.workspace = true
reqwest.workspace = true
scarb-build-metadata = { path = "../utils/scarb-build-metadata" }
cairo-lang-macro-interface = { path = "../plugins/cairo-lang-macro-interface" }
cairo-lang-macro = { path = "../plugins/cairo-lang-macro" }
scarb-metadata = { path = "../scarb-metadata", default-features = false, features = ["builder"] }
scarb-ui = { path = "../utils/scarb-ui" }
semver.workspace = true
Expand Down

0 comments on commit 8bd3d8c

Please sign in to comment.