mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-03 08:43:30 +02:00
Fix missing info.toml in the macros crate
This commit is contained in:
@@ -6,6 +6,10 @@ authors.workspace = true
|
||||
repository.workspace = true
|
||||
license.workspace = true
|
||||
edition.workspace = true
|
||||
include = [
|
||||
"/src/",
|
||||
"/info.toml",
|
||||
]
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
@@ -14,6 +18,3 @@ proc-macro = true
|
||||
quote = "1.0.36"
|
||||
serde.workspace = true
|
||||
toml_edit.workspace = true
|
||||
|
||||
[package.metadata.release]
|
||||
verify = false
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../info.toml
|
||||
@@ -15,7 +15,7 @@ struct InfoFile {
|
||||
|
||||
#[proc_macro]
|
||||
pub fn include_files(_: TokenStream) -> TokenStream {
|
||||
let exercises = toml_edit::de::from_str::<InfoFile>(include_str!("../../info.toml"))
|
||||
let exercises = toml_edit::de::from_str::<InfoFile>(include_str!("../info.toml"))
|
||||
.expect("Failed to parse `info.toml`")
|
||||
.exercises;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user