Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite require and luaurc in lune-std #247

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ba2d720
luaurc rewrite
FlowGnarly Aug 22, 2024
3f709f1
resolve require path
FlowGnarly Aug 22, 2024
2b7bb89
StandardLibrary trait
FlowGnarly Aug 22, 2024
12b87b3
make standardlibrary object safe
FlowGnarly Aug 22, 2024
370c7f8
require and cache impl for stds
FlowGnarly Aug 22, 2024
cbd7cb6
rename storage to context
FlowGnarly Aug 22, 2024
16b3cde
make cache arc mutex
FlowGnarly Aug 22, 2024
62fd0d0
make data struct ready for impl
FlowGnarly Aug 22, 2024
27a98f9
move fn to impl
FlowGnarly Aug 22, 2024
505ff97
require impl (no caching)
FlowGnarly Aug 22, 2024
13cff6f
move path functions to path.rs
FlowGnarly Aug 22, 2024
2eb1670
luaurc error impl
FlowGnarly Aug 23, 2024
a633afc
impl custom aliases
FlowGnarly Aug 23, 2024
fedaf9a
impl cache
FlowGnarly Aug 23, 2024
25b09b1
fixed not converting cached results
FlowGnarly Aug 23, 2024
3d9bb89
drop app container early
FlowGnarly Aug 23, 2024
eaa1c4d
document requirecontext
FlowGnarly Aug 23, 2024
edb3041
impl require error enum
FlowGnarly Aug 23, 2024
9414a9f
unlock mutex before using async
FlowGnarly Aug 23, 2024
1708c05
replace runtime err with require err
FlowGnarly Aug 23, 2024
3b56b41
create thread when requiring module
FlowGnarly Aug 23, 2024
42873f6
split require into functions
FlowGnarly Aug 23, 2024
14d0bcb
track thread
FlowGnarly Aug 23, 2024
e47555f
make StandardLibrary trait public
FlowGnarly Aug 24, 2024
ddcda99
document functions
FlowGnarly Aug 25, 2024
35f2422
make some functions private
FlowGnarly Aug 25, 2024
42f5688
better error message
FlowGnarly Aug 25, 2024
c6a1808
fixed wrong error message
FlowGnarly Aug 25, 2024
a7f9c5f
move path_to_alias to RequireAlias::from_path
FlowGnarly Aug 30, 2024
9279b92
make RequireContext::init public only to crate
FlowGnarly Aug 30, 2024
7f07c9d
validate every field in luaurc files
FlowGnarly Oct 17, 2024
76da13d
eliminate unnecessary checks for files
FlowGnarly Oct 17, 2024
6ce4563
fix typo
FlowGnarly Oct 17, 2024
981d323
eliminate unnecessary checks for files in require
FlowGnarly Oct 17, 2024
2a49830
create channel before reading file
FlowGnarly Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions crates/lune-std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1", default-features = false, features = ["fs", "sync"] }

thiserror = "1.0.63"

lune-utils = { version = "0.1.3", path = "../lune-utils" }

lune-std-datetime = { optional = true, version = "0.1.3", path = "../lune-std-datetime" }
Expand Down
73 changes: 0 additions & 73 deletions crates/lune-std/src/globals/require/alias.rs

This file was deleted.

Loading