Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-hosting #1

Open
jayvdb opened this issue Aug 24, 2022 · 2 comments
Open

Self-hosting #1

jayvdb opened this issue Aug 24, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Aug 24, 2022

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 rust-lang/rustdoc-types#15 (comment) ?)

@aDotInTheVoid
Copy link

dyn_trait as a type kind is somewhat new. Upgrading rustdoc-types (or using an older nightly) should do it.

@Urgau
Copy link
Owner

Urgau commented Sep 7, 2022

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:

toolchain: nightly-2022-07-19

@Urgau Urgau added the enhancement New feature or request label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants