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
|
### 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 general formatting of errors to make them more readable & glanceable
|
||||||
- Improved output formatting of non-primitive types
|
- Improved output formatting of non-primitive types
|
||||||
- Improved output formatting of empty tables
|
- Improved output formatting of empty tables
|
||||||
|
|
3
Cargo.lock
generated
3
Cargo.lock
generated
|
@ -471,12 +471,11 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune"
|
name = "lune"
|
||||||
version = "0.0.4"
|
version = "0.0.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
"mlua",
|
"mlua",
|
||||||
"once_cell",
|
|
||||||
"os_str_bytes",
|
"os_str_bytes",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
|
11
Cargo.toml
11
Cargo.toml
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune"
|
name = "lune"
|
||||||
version = "0.0.4"
|
version = "0.0.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL 2.0"
|
license = "MPL 2.0"
|
||||||
repository = "https://github.com/filiptibell/lune"
|
repository = "https://github.com/filiptibell/lune"
|
||||||
|
@ -23,12 +23,13 @@ lto = true # Enable link-time optimization
|
||||||
panic = "abort" # Remove extra panic info
|
panic = "abort" # Remove extra panic info
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
anyhow = "1.0.68"
|
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"
|
os_str_bytes = "6.4.1"
|
||||||
serde = { version = "1.0.152", features = ["derive"] }
|
|
||||||
serde_json = "1.0.91"
|
serde_json = "1.0.91"
|
||||||
smol = "1.3.0"
|
smol = "1.3.0"
|
||||||
ureq = "2.6.2"
|
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:
|
globals:
|
||||||
# Console
|
# Console
|
||||||
|
@ -74,22 +74,22 @@ globals:
|
||||||
- required: false
|
- required: false
|
||||||
type: table
|
type: table
|
||||||
# Task
|
# Task
|
||||||
task.cancel:
|
# task.cancel:
|
||||||
task.defer:
|
# task.defer:
|
||||||
args:
|
# args:
|
||||||
- type: thread | function
|
# - type: thread | function
|
||||||
- type: "..."
|
# - type: "..."
|
||||||
task.delay:
|
# task.delay:
|
||||||
args:
|
# args:
|
||||||
- required: false
|
# - required: false
|
||||||
type: number
|
# type: number
|
||||||
- type: thread | function
|
# - type: thread | function
|
||||||
- type: "..."
|
# - type: "..."
|
||||||
task.spawn:
|
# task.spawn:
|
||||||
args:
|
# args:
|
||||||
- type: thread | function
|
# - type: thread | function
|
||||||
- type: "..."
|
# - type: "..."
|
||||||
task.wait:
|
# task.wait:
|
||||||
args:
|
# args:
|
||||||
- required: false
|
# - required: false
|
||||||
type: number
|
# type: number
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
-- Lune v0.0.4
|
-- Lune v0.0.5
|
||||||
|
|
||||||
declare console: {
|
declare console: {
|
||||||
resetColor: () -> (),
|
resetColor: () -> (),
|
||||||
|
@ -52,10 +52,12 @@ declare process: {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
declare task: {
|
--[[
|
||||||
cancel: (t: thread) -> (),
|
declare task: {
|
||||||
defer: <A..., R...>(f: thread | (A...) -> (R...), A...) -> (R...),
|
cancel: (t: thread) -> (),
|
||||||
delay: <A..., R...>(duration: number?, f: thread | (A...) -> (R...), A...) -> (R...),
|
defer: <A..., R...>(f: thread | (A...) -> (R...), A...) -> (R...),
|
||||||
spawn: <A..., R...>(f: thread | (A...) -> (R...), A...) -> (R...),
|
delay: <A..., R...>(duration: number?, f: thread | (A...) -> (R...), A...) -> (R...),
|
||||||
wait: (duration: number?) -> (number),
|
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_request_redirect: "net/request/redirect",
|
||||||
net_json_decode: "net/json/decode",
|
net_json_decode: "net/json/decode",
|
||||||
net_json_encode: "net/json/encode",
|
net_json_encode: "net/json/encode",
|
||||||
task_cancel: "task/cancel",
|
// FIXME: Re-enable these tests for doing more work on the task library
|
||||||
task_defer: "task/defer",
|
// task_cancel: "task/cancel",
|
||||||
task_delay: "task/delay",
|
// task_defer: "task/defer",
|
||||||
task_spawn: "task/spawn",
|
// task_delay: "task/delay",
|
||||||
task_wait: "task/wait",
|
// task_spawn: "task/spawn",
|
||||||
|
// task_wait: "task/wait",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue