diff --git a/README.md b/README.md index f5e0d9674..917e4edae 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ async fn main() -> Result<(), Box> { sources.insert(Source::new( "script", r#" - fn calculate(a, b) { + pub fn calculate(a, b) { println("Hello World"); a + b } diff --git a/crates/rune-cli/Cargo.toml b/crates/rune-cli/Cargo.toml index 397aa33b2..50d58d86a 100644 --- a/crates/rune-cli/Cargo.toml +++ b/crates/rune-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rune-cli" -version = "0.6.16" +version = "0.7.0" authors = ["John-John Tedro "] license = "MIT/Apache-2.0" edition = "2018" @@ -24,9 +24,9 @@ anyhow = "1.0.32" bincode = "1.3.1" structopt = {version = "0.3.17", default-features = false, features = ["wrap_help", "suggestions", "color"]} -rune = {version = "0.6.16", path = "../rune"} -rune-modules = {version = "0.6.16", path = "../rune-modules", features = ["full", "experiments"]} -runestick = {version = "0.6.16", path = "../runestick"} +rune = {version = "0.7.0", path = "../rune"} +rune-modules = {version = "0.7.0", path = "../rune-modules", features = ["full", "experiments"]} +runestick = {version = "0.7.0", path = "../runestick"} [build-dependencies] anyhow = "1.0.32" diff --git a/crates/rune-languageserver/Cargo.toml b/crates/rune-languageserver/Cargo.toml index 26cb3823d..564ed7603 100644 --- a/crates/rune-languageserver/Cargo.toml +++ b/crates/rune-languageserver/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rune-languageserver" -version = "0.6.16" +version = "0.7.0" authors = ["John-John Tedro "] license = "MIT/Apache-2.0" edition = "2018" @@ -28,9 +28,9 @@ log = "0.4.11" log4rs = "1.0.0-alpha-1" ropey = "1.2.0" -rune = {version = "0.6.16", path = "../rune"} -rune-modules = {version = "0.6.16", path = "../rune-modules", features = ["full", "experiments"]} -runestick = {version = "0.6.16", path = "../runestick"} +rune = {version = "0.7.0", path = "../rune"} +rune-modules = {version = "0.7.0", path = "../rune-modules", features = ["full", "experiments"]} +runestick = {version = "0.7.0", path = "../runestick"} [build-dependencies] anyhow = "1.0.32" diff --git a/crates/rune-macros/Cargo.toml b/crates/rune-macros/Cargo.toml index d5d9a30a5..3c5ffef06 100644 --- a/crates/rune-macros/Cargo.toml +++ b/crates/rune-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rune-macros" -version = "0.6.16" +version = "0.7.0" authors = ["John-John Tedro "] license = "MIT/Apache-2.0" edition = "2018" @@ -20,7 +20,7 @@ quote = "1.0.3" proc-macro2 = { version = "1.0.10", features = ["span-locations"] } [dev-dependencies] -rune = {version = "0.6.16", path = "../rune"} +rune = {version = "0.7.0", path = "../rune"} [lib] proc-macro = true diff --git a/crates/rune-modules/Cargo.toml b/crates/rune-modules/Cargo.toml index 92b84c811..dfb10b98e 100644 --- a/crates/rune-modules/Cargo.toml +++ b/crates/rune-modules/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rune-modules" -version = "0.6.16" +version = "0.7.0" authors = ["John-John Tedro "] license = "MIT/Apache-2.0" edition = "2018" @@ -37,8 +37,8 @@ serde_json = {version = "1.0.57", optional = true} toml = {version = "0.5.6", optional = true} nanorand = {version = "0.4.4", optional = true, features = ["getrandom"]} -rune = {version = "0.6.16", path = "../rune"} -runestick = {version = "0.6.16", path = "../runestick"} +rune = {version = "0.7.0", path = "../rune"} +runestick = {version = "0.7.0", path = "../runestick"} [package.metadata.docs.rs] all-features = true diff --git a/crates/rune-modules/README.md b/crates/rune-modules/README.md index f769ae2da..d331125d7 100644 --- a/crates/rune-modules/README.md +++ b/crates/rune-modules/README.md @@ -47,34 +47,47 @@ These are modules that can be used with the [Rune language]. [Rune Language]: https://rune-rs.github.io See each module for documentation: +* [core] +* [experiments] +* [fmt] +* [fs] * [http] +* [io] * [json] -* [toml] -* [time] -* [fs] * [process] -* [signal] * [rand] +* [signal] +* [test] +* [time] +* [toml] ### Features -* `full` includes all modules. +* `core` for the [core module][toml] * `experiments` for the [experiments module][experiments] +* `fmt` for the [fmt module][fmt] +* `fs` for the [fs module][fs] +* `full` includes all modules. * `http` for the [http module][http] +* `io` for the [io module][io] * `json` for the [json module][json] -* `toml` for the [toml module][toml] -* `time` for the [time module][time] -* `fs` for the [fs module][fs] * `process` for the [process module][process] -* `signal` for the [signal module][signal] * `rand` for the [rand module][rand] +* `signal` for the [signal module][signal] +* `test` for the [test module][test] +* `time` for the [time module][time] +* `toml` for the [toml module][toml] +[core]: https://docs.rs/rune-modules/0/rune_modules/core/ [experiments]: https://docs.rs/rune-modules/0/rune_modules/experiments/ +[fmt]: https://docs.rs/rune-modules/0/rune_modules/fmt/ +[fs]: https://docs.rs/rune-modules/0/rune_modules/fs/ [http]: https://docs.rs/rune-modules/0/rune_modules/http/ +[io]: https://docs.rs/rune-modules/0/rune_modules/io/ [json]: https://docs.rs/rune-modules/0/rune_modules/json/ -[toml]: https://docs.rs/rune-modules/0/rune_modules/toml/ -[time]: https://docs.rs/rune-modules/0/rune_modules/time/ -[fs]: https://docs.rs/rune-modules/0/rune_modules/fs/ [process]: https://docs.rs/rune-modules/0/rune_modules/process/ -[signal]: https://docs.rs/rune-modules/0/rune_modules/signal/ [rand]: https://docs.rs/rune-modules/0/rune_modules/rand/ +[signal]: https://docs.rs/rune-modules/0/rune_modules/signal/ +[test]: https://docs.rs/rune-modules/0/rune_modules/test/ +[time]: https://docs.rs/rune-modules/0/rune_modules/time/ +[toml]: https://docs.rs/rune-modules/0/rune_modules/toml/ diff --git a/crates/rune-modules/src/core.rs b/crates/rune-modules/src/core.rs index 14deb4668..69707619d 100644 --- a/crates/rune-modules/src/core.rs +++ b/crates/rune-modules/src/core.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["test"]} +//! rune-modules = {version = "0.7.0", features = ["test"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/experiments/mod.rs b/crates/rune-modules/src/experiments/mod.rs index 40ee51272..a4023f977 100644 --- a/crates/rune-modules/src/experiments/mod.rs +++ b/crates/rune-modules/src/experiments/mod.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["experiments"]} +//! rune-modules = {version = "0.7.0", features = ["experiments"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/fmt.rs b/crates/rune-modules/src/fmt.rs index 7dceec36e..0317e0cbe 100644 --- a/crates/rune-modules/src/fmt.rs +++ b/crates/rune-modules/src/fmt.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["fmt"]} +//! rune-modules = {version = "0.7.0", features = ["fmt"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/fs.rs b/crates/rune-modules/src/fs.rs index 08423e6aa..7854aeb89 100644 --- a/crates/rune-modules/src/fs.rs +++ b/crates/rune-modules/src/fs.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["fs"]} +//! rune-modules = {version = "0.7.0", features = ["fs"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/http.rs b/crates/rune-modules/src/http.rs index c7279ce12..9f9d687fd 100644 --- a/crates/rune-modules/src/http.rs +++ b/crates/rune-modules/src/http.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["http", "json"]} +//! rune-modules = {version = "0.7.0", features = ["http", "json"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/io.rs b/crates/rune-modules/src/io.rs index 211104d6f..512534724 100644 --- a/crates/rune-modules/src/io.rs +++ b/crates/rune-modules/src/io.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["io"]} +//! rune-modules = {version = "0.7.0", features = ["io"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/json.rs b/crates/rune-modules/src/json.rs index 6b4a26c6e..f1ab3f787 100644 --- a/crates/rune-modules/src/json.rs +++ b/crates/rune-modules/src/json.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["json"]} +//! rune-modules = {version = "0.7.0", features = ["json"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/process.rs b/crates/rune-modules/src/process.rs index 5605b9eff..b2bc909db 100644 --- a/crates/rune-modules/src/process.rs +++ b/crates/rune-modules/src/process.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["process"]} +//! rune-modules = {version = "0.7.0", features = ["process"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/rand.rs b/crates/rune-modules/src/rand.rs index f9b1df9be..c158786a3 100644 --- a/crates/rune-modules/src/rand.rs +++ b/crates/rune-modules/src/rand.rs @@ -8,7 +8,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["rand"]} +//! rune-modules = {version = "0.7.0", features = ["rand"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/signal.rs b/crates/rune-modules/src/signal.rs index 4ef51ee53..4b6214811 100644 --- a/crates/rune-modules/src/signal.rs +++ b/crates/rune-modules/src/signal.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["signal"]} +//! rune-modules = {version = "0.7.0", features = ["signal"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/test.rs b/crates/rune-modules/src/test.rs index 5dccdf63a..682201e40 100644 --- a/crates/rune-modules/src/test.rs +++ b/crates/rune-modules/src/test.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["test"]} +//! rune-modules = {version = "0.7.0", features = ["test"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/time.rs b/crates/rune-modules/src/time.rs index 1614c3aa1..a533d97f9 100644 --- a/crates/rune-modules/src/time.rs +++ b/crates/rune-modules/src/time.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["time"]} +//! rune-modules = {version = "0.7.0", features = ["time"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-modules/src/toml.rs b/crates/rune-modules/src/toml.rs index 92731b50e..7ebc3c6be 100644 --- a/crates/rune-modules/src/toml.rs +++ b/crates/rune-modules/src/toml.rs @@ -7,7 +7,7 @@ //! Add the following to your `Cargo.toml`: //! //! ```toml -//! rune-modules = {version = "0.6.16", features = ["toml"]} +//! rune-modules = {version = "0.7.0", features = ["toml"]} //! ``` //! //! Install it into your context: diff --git a/crates/rune-wasm/Cargo.toml b/crates/rune-wasm/Cargo.toml index bb931452a..7317da284 100644 --- a/crates/rune-wasm/Cargo.toml +++ b/crates/rune-wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rune-wasm" -version = "0.6.16" +version = "0.7.0" authors = ["John-John Tedro "] license = "MIT/Apache-2.0" edition = "2018" @@ -23,10 +23,10 @@ anyhow = "1.0.32" lazy_static = "1.4.0" parking_lot = "0.11.0" -rune = {version = "0.6.16", path = "../rune", features = []} -rune-macros = {version = "0.6.16", path = "../rune-macros"} -rune-modules = {version = "0.6.16", path = "../rune-modules", features = ["core", "test", "json", "toml", "rand", "experiments"]} -runestick = {version = "0.6.16", path = "../runestick"} +rune = {version = "0.7.0", path = "../rune", features = []} +rune-macros = {version = "0.7.0", path = "../rune-macros"} +rune-modules = {version = "0.7.0", path = "../rune-modules", features = ["core", "test", "json", "toml", "rand", "experiments"]} +runestick = {version = "0.7.0", path = "../runestick"} [dependencies.web-sys] version = "0.3.45" diff --git a/crates/rune/Cargo.toml b/crates/rune/Cargo.toml index be9e7d394..25006518a 100644 --- a/crates/rune/Cargo.toml +++ b/crates/rune/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rune" -version = "0.6.16" +version = "0.7.0" authors = ["John-John Tedro "] license = "MIT/Apache-2.0" edition = "2018" @@ -30,14 +30,14 @@ itoa = "0.4.6" ryu = "1.0" smallvec = "1.4.2" -runestick = {version = "0.6.16", path = "../runestick"} -rune-macros = {version = "0.6.16", path = "../rune-macros"} +runestick = {version = "0.7.0", path = "../runestick"} +rune-macros = {version = "0.7.0", path = "../rune-macros"} [dev-dependencies] tokio = {version = "0.2.22", features = ["macros"]} futures-executor = "0.3.5" -rune-modules = {version = "0.6.16", path = "../rune-modules", features = ["full"]} +rune-modules = {version = "0.7.0", path = "../rune-modules", features = ["full"]} [package.metadata.docs.rs] all-features = true diff --git a/crates/rune/README.md b/crates/rune/README.md index f5e0d9674..917e4edae 100644 --- a/crates/rune/README.md +++ b/crates/rune/README.md @@ -115,7 +115,7 @@ async fn main() -> Result<(), Box> { sources.insert(Source::new( "script", r#" - fn calculate(a, b) { + pub fn calculate(a, b) { println("Hello World"); a + b } diff --git a/crates/runestick-macros/Cargo.toml b/crates/runestick-macros/Cargo.toml index ab565237f..4e855534d 100644 --- a/crates/runestick-macros/Cargo.toml +++ b/crates/runestick-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "runestick-macros" -version = "0.6.16" +version = "0.7.0" authors = ["John-John Tedro "] license = "MIT/Apache-2.0" edition = "2018" @@ -20,8 +20,8 @@ quote = "1.0.3" proc-macro2 = { version = "1.0.10", features = ["span-locations"] } [dev-dependencies] -runestick = { path = "../runestick", version = "0.6.16" } +runestick = { path = "../runestick", version = "0.7.0" } [lib] proc-macro = true -path = "src/lib.rs" \ No newline at end of file +path = "src/lib.rs" diff --git a/crates/runestick/Cargo.toml b/crates/runestick/Cargo.toml index 9a34950de..c8f4a6623 100644 --- a/crates/runestick/Cargo.toml +++ b/crates/runestick/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "runestick" -version = "0.6.16" +version = "0.7.0" authors = ["John-John Tedro "] license = "MIT/Apache-2.0" edition = "2018" @@ -32,7 +32,7 @@ pin-project = "0.4.23" byteorder = "1.3.4" num-bigint = "0.3.0" -runestick-macros = {version = "0.6.16", path = "../runestick-macros"} +runestick-macros = {version = "0.7.0", path = "../runestick-macros"} [dev-dependencies] tokio = {version = "0.2.22", features = ["full"]} diff --git a/editors/code/package-lock.json b/editors/code/package-lock.json index 04fc153e9..181950736 100644 --- a/editors/code/package-lock.json +++ b/editors/code/package-lock.json @@ -1,6 +1,6 @@ { "name": "rune-vscode", - "version": "0.6.16", + "version": "0.7.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/editors/code/package.json b/editors/code/package.json index b7c4576f2..1bfd05867 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -5,7 +5,7 @@ "preview": true, "private": true, "icon": "icon.png", - "version": "0.6.16", + "version": "0.7.0", "releaseTag": null, "publisher": "udoprog", "repository": { diff --git a/tools/publish.rn b/tools/publish.rn index 898000f6b..daf0e5d93 100644 --- a/tools/publish.rn +++ b/tools/publish.rn @@ -9,14 +9,14 @@ pub async fn main() { for project in projects { let cargo = Command::new("cargo"); - cargo.args(["publish", "--manifest-path", `{project}/Cargo.toml`, "--no-verify"]); + cargo.args(["publish", "--manifest-path", `${project}/Cargo.toml`, "--no-verify"]); let status = select { _ = ctrl_c => break, status = cargo.spawn()? => status?, }; - println(`{project}: {status}`); + println(`${project}: ${status}`); } println("Bye"); diff --git a/tools/readmes.rn b/tools/readmes.rn index a16bdb721..e02f436f4 100644 --- a/tools/readmes.rn +++ b/tools/readmes.rn @@ -13,9 +13,9 @@ pub async fn main() { for project in projects { let status = update_readme(project, "README.md").await?; - println(`{project}: {status}`); + println(`${project}: ${status}`); } let status = update_readme("crates/rune", "../../README.md").await?; - println(`.: {status}`); + println(`.: ${status}`); }