Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
1c7ef71
WIP dump
makspll May 13, 2022
7b5fbcb
Merge branch 'main' into add_general_api
makspll May 13, 2022
f8239aa
Merge branch 'main' into add_general_api
makspll May 13, 2022
27dfd65
add basic api.md
makspll May 13, 2022
6fc106d
WIP, some possibly sane initial structure for the lua api
makspll May 15, 2022
9a759bf
WIP, some good progress
makspll May 15, 2022
b0433b9
WIP, rust primitive types
makspll May 18, 2022
5525d68
fix bug where script additions/removals are not handled before contex…
makspll May 20, 2022
8aeee4e
WIP
makspll May 20, 2022
ea32d72
Merge branch 'main' into add_general_api
makspll May 20, 2022
878f19b
Custom Lua Types support !
makspll May 21, 2022
23cf9ea
WIP
makspll May 21, 2022
6c77608
fixed bug where scripts loaded in one frame run twice
makspll May 21, 2022
b975765
cargo fmt
makspll May 21, 2022
d4389af
Merge branch 'main' into add_general_api
makspll May 21, 2022
a70e66e
fixed errors
makspll May 21, 2022
bc46f7d
fix + fmt
makspll May 21, 2022
c78c81f
cargo fmt
makspll May 21, 2022
3853c22
commented out broken examples for now
makspll May 21, 2022
5f26005
commented out imports
makspll May 21, 2022
bf5ab8d
WIP, added macros
makspll May 22, 2022
23543ed
WIP, Implemented Vec2 in new macros
makspll May 22, 2022
ae14525
vec indexing fix
makspll May 24, 2022
1a1ceb9
added rest of floating point vector methods
makspll May 24, 2022
79a2104
remove primitives.rs as unused
makspll May 24, 2022
8ab5b42
remove unused module
makspll May 24, 2022
7016aa0
cleaned up structure
makspll May 24, 2022
988edab
added global methods to macro for constructors + vec constructors
makspll May 24, 2022
1e9a546
fixed issues with indexing matrices
makspll May 25, 2022
0eece00
WIP
makspll May 26, 2022
e3c4dd4
corrected some UB
makspll May 27, 2022
88f0e75
WIP
makspll Jun 1, 2022
6243519
WIP
makspll Jun 2, 2022
ec93031
got rid of all unsafe
makspll Jun 4, 2022
2b01738
removed more unsafe, found rlua bug, keeping on going
makspll Jun 5, 2022
0479f95
fixed issue with lua holding onto world arc too long
makspll Jun 5, 2022
c002049
enabled safe luaowned values
makspll Jun 6, 2022
23abc90
improved safety
makspll Jun 6, 2022
4c4fc2a
started work on moving to proc macro
makspll Jun 6, 2022
812f994
macro progress
makspll Jun 12, 2022
05d3718
complete move to new macro format, rlua bug fixed
makspll Jun 15, 2022
65eb1c1
improved safety
makspll Jun 15, 2022
50d8c30
added auto methods derive flag
makspll Jun 18, 2022
be33e61
fixed duplicated meta method in quats
makspll Jun 18, 2022
0cae293
Merge branch 'main' of https://github.com/makspll/bevy_scripting into…
makspll Jun 23, 2022
3acd4a8
merge fixes
makspll Jun 23, 2022
aebf6cc
fix more merge issues
makspll Jun 23, 2022
955a880
changes to api structure
makspll Jun 24, 2022
a99d386
remove tlconfig
makspll Jun 24, 2022
15c4af2
Added macro generator + macro improvements
makspll Jul 3, 2022
cd2641b
corrected import paths in macro
makspll Jul 3, 2022
8ada499
Fixed final bugs with current api state
makspll Jul 4, 2022
4d30ca3
restructured api imports
makspll Jul 5, 2022
ad2a572
further macro improvements
makspll Jul 6, 2022
be88826
add support for resources
makspll Jul 6, 2022
9a16302
changed example to include resources
makspll Jul 6, 2022
30bc2b2
lua formatiing
makspll Jul 6, 2022
4593f18
cargo fix
makspll Jul 6, 2022
5a5b811
refactoring
makspll Jul 8, 2022
03b5e5f
Fixes to api generator
makspll Jul 8, 2022
c5adc74
improved trait imports
makspll Jul 9, 2022
72ed2eb
change imports
makspll Jul 9, 2022
c5e8e0c
All reflect types are now in api_gen_config.toml
makspll Jul 10, 2022
95d1e83
added field setters and getters to macro
makspll Jul 13, 2022
15c7021
field docstrings
makspll Jul 13, 2022
33537b6
finalize fields
makspll Jul 13, 2022
515d41d
Improved LuaWorld
makspll Jul 14, 2022
b240b0f
Add support for hierarchy commands
makspll Jul 14, 2022
32509cb
more world methods
makspll Jul 14, 2022
ef04683
improvements to fields
makspll Jul 15, 2022
6332360
ergonomics changes
makspll Jul 18, 2022
a652832
support for option
makspll Jul 18, 2022
4d15cb8
WIP
makspll Jul 19, 2022
858f0e5
nested lua proxies now enabled + shaved off 20 bytes off ScriptRef
makspll Jul 20, 2022
5b76e45
reorganised imports
makspll Jul 20, 2022
40c6024
remove caching and fix non-symmetry in sub reflection
makspll Jul 23, 2022
7e1eb4b
added iterator support for LuaVec
makspll Jul 23, 2022
12c6035
added push method for LuaVec
makspll Jul 23, 2022
2537693
Removed a lot of panics, improved error handling
makspll Jul 25, 2022
d0b4b0e
More LuaVec methods
makspll Jul 25, 2022
7591689
remove useless file
makspll Jul 25, 2022
e9db44c
Progress on macro refactoring
makspll Jul 28, 2022
a03b6e0
generator back to original functionality at least
makspll Jul 29, 2022
30a6c0c
small refactor
makspll Jul 29, 2022
9067d7a
cargo fix
makspll Jul 29, 2022
2c32c1f
cargo fmt
makspll Jul 29, 2022
71b70cd
fmt
makspll Jul 29, 2022
2bdcc60
formatting
makspll Jul 29, 2022
779871f
update examples
makspll Jul 29, 2022
5a0e67f
refactoring for clarity
makspll Jul 30, 2022
3a366f3
refactoring
makspll Jul 30, 2022
329c307
change imports for generated.rs
makspll Jul 30, 2022
dfbcd95
fix tuple indices in lua documentation
makspll Jul 30, 2022
e41dd33
fixed documentation generation for lua bevy api
makspll Jul 30, 2022
1fb4a2b
fixed wrong types getting global instances in teal
makspll Jul 30, 2022
d348adb
laid some foundations for generics in the api generator
makspll Jul 31, 2022
d15d24e
add example showcasing wrapper generation with macro
makspll Aug 1, 2022
93ba7ab
change readme and remove old benches
makspll Aug 1, 2022
a4a31a6
formatting
makspll Aug 1, 2022
62e87f0
removed trailing whitespace fmt didn't
makspll Aug 1, 2022
264d041
remove useless field
makspll Aug 1, 2022
9473e56
merge
makspll Aug 1, 2022
06e2daa
Merge branch 'main' of https://github.com/makspll/bevy_scripting into…
makspll Aug 1, 2022
95d1e13
fix merge errors
makspll Aug 1, 2022
c115c17
Clean up examples
makspll Aug 1, 2022
2ed0606
move examples into language folders
makspll Aug 1, 2022
22617b2
removed unused dependencies
makspll Aug 1, 2022
159ccca
readme links fix
makspll Aug 1, 2022
c7acf69
Derivations of ToLuaProxy added to macro
makspll Aug 1, 2022
72f31c5
added docstring to macro
makspll Aug 1, 2022
42999b0
Add prelude and some more cleanup
makspll Aug 1, 2022
f01fb2a
clippy fixes
makspll Aug 1, 2022
5d7775d
clippy lints
makspll Aug 1, 2022
862dc3c
Clean up
makspll Aug 1, 2022
7b8d2d1
clippy lints in examples
makspll Aug 1, 2022
e7517d8
game of life example complete
makspll Aug 2, 2022
14f368d
update game_of_life and add video to readme
makspll Aug 2, 2022
c74cb56
update link
makspll Aug 2, 2022
13be8c8
cargo fmt
makspll Aug 2, 2022
a4bda55
cargo fix
makspll Aug 2, 2022
f111914
clippy fix
makspll Aug 2, 2022
29ff120
make build sync with hot reloading teal
makspll Aug 2, 2022
38fca30
fmt
makspll Aug 2, 2022
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
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[env]
TARGET_DIR={ value = "target" , relative = true }
TARGET_DIR={ value = "target", relative = true }
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk

.vscode/

**global_types.d.tl
**/doc
**tlconfig.lua
**.log
**.log
**build
9 changes: 5 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,16 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug example 'native_types'",
"name": "Debug example 'bevy_api'",
"cargo": {
"args": [
"build",
"--example=native_types",
"--package=bevy_mod_scripting"
"--example=bevy_api_lua",
"--package=bevy_mod_scripting",
"--features=lua54"
],
"filter": {
"name": "native_types",
"name": "bevy_api_lua",
"kind": "example"
}
},
Expand Down
8 changes: 6 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
"rust-analyzer.cargo.features": [
"lua54",
"teal",
]
}
],
"rust-analyzer.server.extraEnv": {
"RUSTUP_TOOLCHAIN": "stable"
}
}

9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
resolver = "2"
members = [
"bevy_mod_scripting",
"bevy_event_priority"
"bevy_event_priority",
"bevy_mod_scripting_derive",
"bevy_api_gen"
]

[profile.dev]
opt-level = 1

[profile.dev.package."*"]
opt-level = 3
Loading