diff --git a/ctru-sys/Cargo.toml b/ctru-sys/Cargo.toml index 92a6c9e..9ae5d5b 100644 --- a/ctru-sys/Cargo.toml +++ b/ctru-sys/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [dependencies] libc = { version = "0.2.121", default-features = false } -doxygen-rs = { git = "https://github.com/Techie-Pi/doxygen-rs.git", rev = "ef2300a4d6e7c6dc5a6061096d69bf054a9f7896", optional = true } +doxygen-rs = { git = "https://github.com/Techie-Pi/doxygen-rs.git", version = "0.2.1", rev = "b941e17672852dd555dd293a5d85e8a346c5c6a9", optional = true } [features] build-binary = ["doxygen-rs"] diff --git a/ctru-sys/src/bin/docstring-to-rustdoc.rs b/ctru-sys/src/bin/docstring-to-rustdoc.rs index a23d8cf..cc133c5 100644 --- a/ctru-sys/src/bin/docstring-to-rustdoc.rs +++ b/ctru-sys/src/bin/docstring-to-rustdoc.rs @@ -16,8 +16,9 @@ fn main() -> io::Result<()> { let args: Vec = env::args().collect(); let bindings_path = Path::new(args.get(1).expect("bindings.rs not provided in the args")); + let bindings = fs::read_to_string(bindings_path)?; - let parsed = doxygen_rs::transform_bindgen(&bindings_path)?; + let parsed = doxygen_rs::transform_bindgen(bindings.as_str()); let old_bindings_path = bindings_path.to_str().unwrap().to_owned() + ".old";