Browse Source

Update ``doxygen-rs``

pull/75/head
TechiePi 2 years ago
parent
commit
99c7a36ef0
  1. 2
      ctru-sys/Cargo.toml
  2. 3
      ctru-sys/src/bin/docstring-to-rustdoc.rs

2
ctru-sys/Cargo.toml

@ -8,7 +8,7 @@ edition = "2021"
[dependencies] [dependencies]
libc = { version = "0.2.121", default-features = false } 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] [features]
build-binary = ["doxygen-rs"] build-binary = ["doxygen-rs"]

3
ctru-sys/src/bin/docstring-to-rustdoc.rs

@ -16,8 +16,9 @@ fn main() -> io::Result<()> {
let args: Vec<String> = env::args().collect(); let args: Vec<String> = env::args().collect();
let bindings_path = Path::new(args.get(1).expect("bindings.rs not provided in the args")); 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"; let old_bindings_path = bindings_path.to_str().unwrap().to_owned() + ".old";

Loading…
Cancel
Save