|
| 1 | +[package] |
| 2 | +name = "bevy_mod_scripting" |
| 3 | +version = "0.1.0" |
| 4 | +authors = ["Maksymilian Mozolewski <makspl17@gmail.com>"] |
| 5 | +edition = "2021" |
| 6 | +license = "MIT" |
| 7 | +description = "Bevy plugin for enabling scripting" |
| 8 | +repository = "https://github.com/makspll/bevy_mod_scripting" |
| 9 | +homepage = "https://github.com/makspll/bevy_mod_scripting" |
| 10 | +keywords = ["bevy", "gamedev", "scripting", "lua"] |
| 11 | +categories = ["game-development"] |
| 12 | +readme = "../readme.md" |
| 13 | +include= ["readme.md","/src","/examples","/assets","LICENSE"] |
| 14 | + |
| 15 | +[lib] |
| 16 | +name = "bevy_mod_scripting" |
| 17 | +path = "src/lib.rs" |
| 18 | + |
| 19 | +[package.metadata.docs.rs] |
| 20 | +features = ["lua54","teal","unsafe_lua_modules"] |
| 21 | + |
| 22 | +[features] |
| 23 | + |
| 24 | +# if enabled enables documentation updating in optimized builds |
| 25 | +doc_always = [] |
| 26 | + |
| 27 | +# enables loading possibly unsafe lua modules by lua scripts |
| 28 | +unsafe_lua_modules = [] |
| 29 | + |
| 30 | +# enable teal utilities |
| 31 | +teal = [] |
| 32 | + |
| 33 | + |
| 34 | +lua51 = ["tealr/mlua_lua51"] |
| 35 | +lua52 = ["tealr/mlua_lua52"] |
| 36 | +lua53 = ["tealr/mlua_lua53"] |
| 37 | +lua54 = ["tealr/mlua_lua54"] |
| 38 | +luajit = ["tealr/mlua_luajit"] |
| 39 | +luajit52 = ["tealr/mlua_luajit52"] |
| 40 | + |
| 41 | +mlua_serialize = ["tealr/mlua_serialize"] |
| 42 | +mlua_macros = ["tealr/mlua_macros"] |
| 43 | + |
| 44 | +[dependencies] |
| 45 | +bevy = { version = "0.8.0", default-features = false, features=["bevy_asset","bevy_gltf","bevy_animation","bevy_core_pipeline","bevy_ui","bevy_pbr","bevy_render","bevy_text","bevy_sprite","filesystem_watcher"]} |
| 46 | +tealr = { version = "0.9.0-alpha1", features=["mlua_vendored","mlua_send"]} |
| 47 | +rhai = { version = "1.7.0", features = ["sync"] } |
| 48 | +anyhow = "1.0.57" |
| 49 | +once_cell = "1.10.0" |
| 50 | +bevy_event_priority = { path = "bevy_event_priority", version="0.1.0" } |
| 51 | +bevy_mod_scripting_derive = {path = "bevy_mod_scripting_derive", version="0.1.0"} |
| 52 | +thiserror = "1.0.31" |
| 53 | +lazy_static = "1.4.0" |
| 54 | +paste = "1.0.7" |
| 55 | +parking_lot = "0.12.1" |
| 56 | +serde_json = "1.0.81" |
| 57 | +num-traits = "0.2.15" |
| 58 | +serde = { version = "1", features = ["derive"] } |
| 59 | +smallvec = "1.9.0" |
| 60 | + |
| 61 | +[dev-dependencies] |
| 62 | +# bevy_console = { git = "https://github.com/OnlyGraphs/bevy-console" } |
| 63 | +# bevy_asset_loader = {git = "https://github.com/NiklasEi/bevy_asset_loader", features = ["dynamic_assets"]} |
| 64 | +bevy = { version = "0.8.0"} |
| 65 | +rand = "0.8.5" |
| 66 | +serde = "1.0.137" |
| 67 | +criterion = "0.3" |
| 68 | + |
| 69 | + |
| 70 | +# needs bevy 0.8 support from console |
| 71 | +# [[example]] |
| 72 | +# name = "console_integration_lua" |
| 73 | +# path = "examples/console_integration_lua.rs" |
| 74 | +# required-features = ["lua54"] |
| 75 | + |
| 76 | + |
| 77 | +# [[example]] |
| 78 | +# name = "console_integration_rhai" |
| 79 | +# path = "examples/console_integration_rhai.rs" |
| 80 | + |
| 81 | +[[example]] |
| 82 | +name = "complex_game_loop_lua" |
| 83 | +path = "examples/lua/complex_game_loop.rs" |
| 84 | +required-features = ["lua54"] |
| 85 | + |
| 86 | +[[example]] |
| 87 | +name = "game_of_life_lua" |
| 88 | +path = "examples/lua/game_of_life.rs" |
| 89 | +required-features = ["lua54","teal"] |
| 90 | + |
| 91 | +[[example]] |
| 92 | +name = "event_recipients_lua" |
| 93 | +path = "examples/lua/event_recipients.rs" |
| 94 | + |
| 95 | +[[example]] |
| 96 | +name = "documentation_gen_lua" |
| 97 | +path = "examples/lua/documentation_gen.rs" |
| 98 | +required-features = ["lua54"] |
| 99 | + |
| 100 | + |
| 101 | +[[example]] |
| 102 | +name = "bevy_api_lua" |
| 103 | +path = "examples/lua/bevy_api.rs" |
| 104 | +required-features = ["lua54"] |
| 105 | + |
| 106 | +[[example]] |
| 107 | +name = "wrappers" |
| 108 | +path = "examples/wrappers.rs" |
| 109 | +required-features = ["lua54"] |
| 110 | + |
| 111 | + |
1 | 112 | [workspace] |
2 | 113 | resolver = "2" |
3 | 114 | members = [ |
4 | | - "bevy_mod_scripting", |
5 | 115 | "bevy_event_priority", |
6 | 116 | "bevy_mod_scripting_derive", |
7 | 117 | "bevy_api_gen" |
|
0 commit comments