Skip to content

Commit

Permalink
Version 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Jan 23, 2023
1 parent d531cf3 commit 7469909
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 40 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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 changes: 20 additions & 20 deletions lune.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Lune v0.0.4
# Lune v0.0.5
---
globals:
# Console
Expand Down Expand Up @@ -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
18 changes: 10 additions & 8 deletions luneTypes.d.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Lune v0.0.4
-- Lune v0.0.5

declare console: {
resetColor: () -> (),
Expand Down Expand Up @@ -52,10 +52,12 @@ declare process: {
},
}

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),
}
--[[
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),
}
]]
11 changes: 6 additions & 5 deletions src/lib/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
}

0 comments on commit 7469909

Please sign in to comment.