Skip to content

Commit a366bb5

Browse files
committed
fix bug
1 parent 016c54b commit a366bb5

File tree

5 files changed

+124
-126
lines changed

5 files changed

+124
-126
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ mlua_macros = ["tealr/mlua_macros"]
4646

4747
[dependencies]
4848
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"]}
49-
tealr = { version = "0.9.0-alpha1", features=["mlua_vendored","mlua_send"]}
49+
tealr = { version = "0.9.0-alpha3", features=["mlua_vendored","mlua_send"]}
5050
rhai = { version = "1.7.0", features = ["sync"] }
5151
anyhow = "1.0.57"
5252
once_cell = "1.10.0"

bevy_api_gen/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ pub(crate) fn generate_macros(
213213
writer.write_inline("\"");
214214
writer.write_inline(global_name);
215215
writer.write_inline("\"");
216-
writer.write_inline(".into()");
217216
// corresponding proxy
218217
if dummy_proxy {
219218
writer.write_inline(", DummyTypeName::<");

examples/lua/documentation_gen.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ impl tealr::mlu::ExportInstances for Export {
5454
instance_collector: &mut T,
5555
) -> mlua::Result<()> {
5656
instance_collector.document_instance("Documentation for the exposed global variable");
57-
instance_collector.add_instance("my_api".into(), |_| Ok(APIModule))
57+
instance_collector.add_instance("my_api", |_| Ok(APIModule))?;
58+
59+
Ok(())
5860
}
5961
}
6062

makefile

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,22 @@ generate_api:
5757
> ../src/api/generated.rs
5858

5959
make_json_files:
60-
rustup run nightly cargo rustdoc -p bevy_asset@0.8.0 -- -Zunstable-options --output-format json && \
61-
rustup run nightly cargo rustdoc -p bevy_ecs@0.8.0 -- -Zunstable-options --output-format json && \
62-
rustup run nightly cargo rustdoc -p bevy_pbr@0.8.0 -- -Zunstable-options --output-format json && \
63-
rustup run nightly cargo rustdoc -p bevy_render@0.8.0 -- -Zunstable-options --output-format json && \
64-
rustup run nightly cargo rustdoc -p bevy_math@0.8.0 -- -Zunstable-options --output-format json && \
65-
rustup run nightly cargo rustdoc -p bevy_transform@0.8.0 -- -Zunstable-options --output-format json && \
66-
rustup run nightly cargo rustdoc -p bevy_sprite@0.8.0 -- -Zunstable-options --output-format json && \
67-
rustup run nightly cargo rustdoc -p bevy_ui@0.8.0 -- -Zunstable-options --output-format json && \
68-
rustup run nightly cargo rustdoc -p bevy_animation@0.8.0 -- -Zunstable-options --output-format json && \
69-
rustup run nightly cargo rustdoc -p bevy_core@0.8.0 -- -Zunstable-options --output-format json && \
70-
rustup run nightly cargo rustdoc -p bevy_core_pipeline@0.8.0 -- -Zunstable-options --output-format json && \
71-
rustup run nightly cargo rustdoc -p bevy_gltf@0.8.0 -- -Zunstable-options --output-format json && \
72-
rustup run nightly cargo rustdoc -p bevy_hierarchy@0.8.0 -- -Zunstable-options --output-format json && \
73-
rustup run nightly cargo rustdoc -p bevy_text@0.8.0 -- -Zunstable-options --output-format json && \
74-
rustup run nightly cargo rustdoc -p bevy_time@0.8.0 -- -Zunstable-options --output-format json && \
75-
rustup run nightly cargo rustdoc -p bevy_utils@0.8.0 -- -Zunstable-options --output-format json && \
76-
rustup run nightly cargo rustdoc -p bevy_reflect@0.8.0 -- -Zunstable-options --output-format json && \
77-
rustup run nightly cargo rustdoc -p glam -- -Zunstable-options --output-format json && \
78-
rustup run nightly cargo rustdoc -p bevy@0.8.0 -- -Zunstable-options --output-format json
60+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_asset@0.8.1 -- -Zunstable-options --output-format json && \
61+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_ecs@0.8.1 -- -Zunstable-options --output-format json && \
62+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_pbr@0.8.1 -- -Zunstable-options --output-format json && \
63+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_render@0.8.1 -- -Zunstable-options --output-format json && \
64+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_math@0.8.1 -- -Zunstable-options --output-format json && \
65+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_transform@0.8.1 -- -Zunstable-options --output-format json && \
66+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_sprite@0.8.1 -- -Zunstable-options --output-format json && \
67+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_ui@0.8.1 -- -Zunstable-options --output-format json && \
68+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_animation@0.8.1 -- -Zunstable-options --output-format json && \
69+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_core@0.8.1 -- -Zunstable-options --output-format json && \
70+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_core_pipeline@0.8.1 -- -Zunstable-options --output-format json && \
71+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_gltf@0.8.1 -- -Zunstable-options --output-format json && \
72+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_hierarchy@0.8.1 -- -Zunstable-options --output-format json && \
73+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_text@0.8.1 -- -Zunstable-options --output-format json && \
74+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_time@0.8.1 -- -Zunstable-options --output-format json && \
75+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_utils@0.8.1 -- -Zunstable-options --output-format json && \
76+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy_reflect@0.8.1 -- -Zunstable-options --output-format json && \
77+
rustup run nightly-2022-07-01 cargo rustdoc -p glam -- -Zunstable-options --output-format json && \
78+
rustup run nightly-2022-07-01 cargo rustdoc -p bevy@0.8.1 -- -Zunstable-options --output-format json

0 commit comments

Comments
 (0)