diff --git a/CHANGELOG.md b/CHANGELOG.md index b9dd527..88c286a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Large internal changes to allow for implementing the `task` library. + The Lune binary size has decreased as a result of these changes. - Improved general formatting of errors to make them more readable & glanceable - Improved output formatting of non-primitive types - Improved output formatting of empty tables diff --git a/Cargo.lock b/Cargo.lock index c1ec8c9..293722f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -471,12 +471,11 @@ dependencies = [ [[package]] name = "lune" -version = "0.0.4" +version = "0.0.5" dependencies = [ "anyhow", "clap", "mlua", - "once_cell", "os_str_bytes", "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index d62ec39..4e4ff39 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune" -version = "0.0.4" +version = "0.0.5" edition = "2021" license = "MPL 2.0" repository = "https://github.com/filiptibell/lune" @@ -23,12 +23,13 @@ lto = true # Enable link-time optimization panic = "abort" # Remove extra panic info [dependencies] + anyhow = "1.0.68" -clap = { version = "4.1.1", features = ["derive"] } -mlua = { version = "0.8.7", features = ["luau", "async", "serialize"] } -once_cell = "1.17.0" os_str_bytes = "6.4.1" -serde = { version = "1.0.152", features = ["derive"] } serde_json = "1.0.91" smol = "1.3.0" ureq = "2.6.2" + +clap = { version = "4.1.1", features = ["derive"] } +mlua = { version = "0.8.7", features = ["luau", "async", "serialize"] } +serde = { version = "1.0.152", features = ["derive"] } diff --git a/lune.yml b/lune.yml index 335cef8..a8c4dbb 100644 --- a/lune.yml +++ b/lune.yml @@ -1,4 +1,4 @@ -# Lune v0.0.4 +# Lune v0.0.5 --- globals: # Console @@ -74,22 +74,22 @@ globals: - required: false type: table # Task - task.cancel: - task.defer: - args: - - type: thread | function - - type: "..." - task.delay: - args: - - required: false - type: number - - type: thread | function - - type: "..." - task.spawn: - args: - - type: thread | function - - type: "..." - task.wait: - args: - - required: false - type: number + # task.cancel: + # task.defer: + # args: + # - type: thread | function + # - type: "..." + # task.delay: + # args: + # - required: false + # type: number + # - type: thread | function + # - type: "..." + # task.spawn: + # args: + # - type: thread | function + # - type: "..." + # task.wait: + # args: + # - required: false + # type: number diff --git a/luneTypes.d.luau b/luneTypes.d.luau index 6e09afb..9602285 100644 --- a/luneTypes.d.luau +++ b/luneTypes.d.luau @@ -1,4 +1,4 @@ --- Lune v0.0.4 +-- Lune v0.0.5 declare console: { resetColor: () -> (), @@ -52,10 +52,12 @@ declare process: { }, } -declare task: { - cancel: (t: thread) -> (), - defer: (f: thread | (A...) -> (R...), A...) -> (R...), - delay: (duration: number?, f: thread | (A...) -> (R...), A...) -> (R...), - spawn: (f: thread | (A...) -> (R...), A...) -> (R...), - wait: (duration: number?) -> (number), -} +--[[ + declare task: { + cancel: (t: thread) -> (), + defer: (f: thread | (A...) -> (R...), A...) -> (R...), + delay: (duration: number?, f: thread | (A...) -> (R...), A...) -> (R...), + spawn: (f: thread | (A...) -> (R...), A...) -> (R...), + wait: (duration: number?) -> (number), + } +]] diff --git a/src/lib/lib.rs b/src/lib/lib.rs index 8331c0f..e82543e 100644 --- a/src/lib/lib.rs +++ b/src/lib/lib.rs @@ -139,10 +139,11 @@ mod tests { net_request_redirect: "net/request/redirect", net_json_decode: "net/json/decode", net_json_encode: "net/json/encode", - task_cancel: "task/cancel", - task_defer: "task/defer", - task_delay: "task/delay", - task_spawn: "task/spawn", - task_wait: "task/wait", + // FIXME: Re-enable these tests for doing more work on the task library + // task_cancel: "task/cancel", + // task_defer: "task/defer", + // task_delay: "task/delay", + // task_spawn: "task/spawn", + // task_wait: "task/wait", } }