mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-09 12:19:09 +00:00
Version 0.0.5
This commit is contained in:
parent
d531cf3813
commit
746990938c
6 changed files with 45 additions and 40 deletions
|
@ -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
|
||||
|
|
3
Cargo.lock
generated
3
Cargo.lock
generated
|
@ -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",
|
||||
|
|
11
Cargo.toml
11
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"] }
|
||||
|
|
40
lune.yml
40
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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- Lune v0.0.4
|
||||
-- Lune v0.0.5
|
||||
|
||||
declare console: {
|
||||
resetColor: () -> (),
|
||||
|
@ -52,10 +52,12 @@ declare process: {
|
|||
},
|
||||
}
|
||||
|
||||
declare task: {
|
||||
--[[
|
||||
declare task: {
|
||||
cancel: (t: thread) -> (),
|
||||
defer: <A..., R...>(f: thread | (A...) -> (R...), A...) -> (R...),
|
||||
delay: <A..., R...>(duration: number?, f: thread | (A...) -> (R...), A...) -> (R...),
|
||||
spawn: <A..., R...>(f: thread | (A...) -> (R...), A...) -> (R...),
|
||||
wait: (duration: number?) -> (number),
|
||||
}
|
||||
}
|
||||
]]
|
||||
|
|
|
@ -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",
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue