A fix to better support rust-analyzer and type support.
This probably generates a large file to compile, so we need to look into that when we need to
This commit is contained in:
parent
4d1d223ece
commit
f83541a24c
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "r2r"
|
name = "r2r"
|
||||||
version = "0.0.1"
|
version = "0.0.2"
|
||||||
authors = ["Martin Dahl <martin.dahl@gmail.com>"]
|
authors = ["Martin Dahl <martin.dahl@gmail.com>"]
|
||||||
description = "Minimal ros2 bindings."
|
description = "Minimal ros2 bindings."
|
||||||
license = "Apache-2.0/MIT"
|
license = "Apache-2.0/MIT"
|
||||||
|
|
|
||||||
4
build.rs
4
build.rs
|
|
@ -26,8 +26,8 @@ fn main() {
|
||||||
);
|
);
|
||||||
println!("cargo:rustc-link-lib=dylib={}__rosidl_generator_c", module);
|
println!("cargo:rustc-link-lib=dylib={}__rosidl_generator_c", module);
|
||||||
|
|
||||||
|
modules.push_str(&format!(r#"pub mod {module}{{include!(concat!(env!("OUT_DIR"), "/{module}.rs"));}}{lf}"#, module=module, lf="\n"));
|
||||||
modules.push_str(&format!("pub mod {};\n", module));
|
//modules.push_str(&format!("pub mod {};\n", module));
|
||||||
|
|
||||||
let mut codegen = String::new();
|
let mut codegen = String::new();
|
||||||
for (prefix, msgs) in prefixes {
|
for (prefix, msgs) in prefixes {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue