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

Switched to git dependancy pin rather than patch for tealr #92

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Changes from all commits
Commits
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
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -20,11 +20,6 @@ path = "src/documentation/main.rs"
name = "bevy_mod_scripting"
path = "src/lib.rs"


[patch.crates-io]
#Patch required for v0.9.0-alpha4 dependancy, unless cargo can be convinced to hard-pin to it.
tealr = {git="https://github.com/lenscas/tealr.git", rev="05c9cdbace8abb6c12fc200e03a7ffcc5afff308"}

[package.metadata."docs.rs"]
features = ["lua", "lua54", "rhai", "lua_script_api", "rhai_script_api", "teal"]

3 changes: 2 additions & 1 deletion languages/bevy_mod_scripting_lua/Cargo.toml
Original file line number Diff line number Diff line change
@@ -45,7 +45,8 @@ path="src/lib.rs"
[dependencies]
bevy= { version = "0.11", default-features = false}
bevy_mod_scripting_core = {path="../../bevy_mod_scripting_core", version = "0.3.0" }
tealr = { version = "=0.9.0-alpha4", features=["mlua_vendored","mlua_send"]}
#Git pin required for v0.9.0-alpha4 dependancy, without it 0.9.1 is pulled
tealr = {git="https://github.com/lenscas/tealr.git", rev="05c9cdbace8abb6c12fc200e03a7ffcc5afff308", features=["mlua_vendored","mlua_send"]}
parking_lot = "0.12.1"
serde_json = "1.0.81"
serde = { version = "1", features = ["derive"] }

Unchanged files with check annotations Beta

use bevy_mod_scripting_lua::tealr;
use tealr::mlu::mlua::MetaMethod;
use tealr::mlu::TypedFunction;

Check warning on line 10 in bevy_script_api/src/lua/std.rs

GitHub Actions / Check (ubuntu-latest, luajit)

unused import: `tealr::mlu::TypedFunction`

Check warning on line 10 in bevy_script_api/src/lua/std.rs

GitHub Actions / Check (ubuntu-latest, lua51)

unused import: `tealr::mlu::TypedFunction`
use tealr::mlu::{
mlua::{self, FromLua, Lua, ToLua, UserData, Value},
TealData, TealDataMethods,
/// Writes full type path inline corresponding to `Reflect::type_name` of each type
///
/// As:
/// ```rust,ignore

Check warning on line 31 in bevy_api_gen/src/wrapper.rs

GitHub Actions / Docs

could not parse code block as Rust code
///
/// this
/// |
/// - other wrapper types generated by this macro surrounded in `Wrapper()`
/// - Both mutable and immutable references to any of the above (apart from on fields)
/// - the self type and receiver (self, &self or &mut self), if used in method must be followed by `:` to differentiate it from other self arguments
/// Currently more complex types like: Option<T> and LuaWrapper<T> are not yet supported (although they have Proxy implementations which can be manually implemented).

Check warning on line 32 in bevy_mod_scripting_derive/src/lib.rs

GitHub Actions / Docs

unclosed HTML tag `T`

Check warning on line 32 in bevy_mod_scripting_derive/src/lib.rs

GitHub Actions / Docs

unclosed HTML tag `T`
///
/// # Example
/// ```rust,ignore
/// Iterates over events this reader has not seen yet, while also clearing them.
/// Will not remove any events of priority lower than min (0 is highest, inf is lowest)
/// but will discard events of higher priority
/// i.e. will handle events in the priority range [min,max] (inclusive)

Check warning on line 115 in bevy_event_priority/src/lib.rs

GitHub Actions / Docs

unresolved link to `min,max`
pub fn iter_prio_range(&mut self, max: u32, min: u32) -> impl Iterator<Item = E> + '_ {
PriorityIterator {
min,
}
pub trait AddScriptHostHandler {
/// Enables this script host to handle events with priorities in the range [0,min_prio] (inclusive),

Check warning on line 148 in bevy_mod_scripting_core/src/lib.rs

GitHub Actions / Docs

unresolved link to `0,min_prio`
/// during from within the given set.
///
/// Note: this is identical to adding the script_event_handler system manually, so if you require more complex setup, you can use the following:
/// In this crate you can achieve this by using a separate system set before and after your physics,
/// then assigning event priorities such that your events are forced to run at the points you want them to, for example:
///
/// PrePhysics priority range [0,1]

Check warning on line 169 in bevy_mod_scripting_core/src/lib.rs

GitHub Actions / Docs

unresolved link to `0,1`
/// PostPhysics priority range [2,4]

Check warning on line 170 in bevy_mod_scripting_core/src/lib.rs

GitHub Actions / Docs

unresolved link to `2,4`
///
/// | Priority | Handler | Event |
/// | -------- | ----------- | ------------ |