mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-24 14:37:32 -05:00
Fix missing info.toml in the macros crate
This commit is contained in:
parent
a4e623ea94
commit
8d45cdb09d
5 changed files with 9 additions and 6 deletions
|
@ -70,4 +70,3 @@ panic = "abort"
|
|||
|
||||
[package.metadata.release]
|
||||
pre-release-hook = ["./release-hook.sh"]
|
||||
verify = false
|
||||
|
|
|
@ -29,8 +29,10 @@ This'll also install _Cargo_, Rust's package/project manager.
|
|||
|
||||
The following command will download and compile Rustlings:
|
||||
|
||||
<!-- TODO: Remove @6.0.0-beta.x -->
|
||||
|
||||
```bash
|
||||
cargo install rustlings --locked
|
||||
cargo install rustlings@6.0.0-beta.2 --locked
|
||||
```
|
||||
|
||||
### Initialization
|
||||
|
|
|
@ -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
|
||||
|
|
1
rustlings-macros/info.toml
Symbolic link
1
rustlings-macros/info.toml
Symbolic link
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue