rd
rd copied to clipboard
Self-hosting
From what I can see, the CI doesnt run rd
on itself.
When I tried locally, I encountered:
cargo run -- -v --output html/ target/doc/rd.json
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
Running `target/debug/rd -v --output html/ target/doc/rd.json`
[2022-08-24T08:30:25Z INFO rd] creating the output directory: "html/"
[2022-08-24T08:30:25Z INFO rd] opening input file: "target/doc/rd.json"
[2022-08-24T08:30:25Z INFO rd] starting deserialize of the file
Error: Unable to deseriliaze the content of the file
Caused by:
unknown variant `dyn_trait`, expected one of `resolved_path`, `generic`, `primitive`, `function_pointer`, `tuple`, `slice`, `array`, `impl_trait`, `infer`, `raw_pointer`, `borrowed_ref`, `qualified_path` at line 1 column 23934
Is this an rd
problem, or does it need to be fixed in rustdoc-types
(possibly already fixed https://github.com/aDotInTheVoid/rustdoc-types/issues/15#issuecomment-1209639815 ?)
dyn_trait
as a type kind is somewhat new. Upgrading rustdoc-types
(or using an older nightly) should do it.
Yeah, sorry for that. I have been quite bussy lately and didn't catch up with the latest modifications.
As for testing on rd
it should be possible if you use the same nightly as CI: https://github.com/Urgau/rd/blob/194cbf1ca62a6dc4b3148a8323c81def0b2aa75c/.github/workflows/main.yml#L43