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

Please include Async documentation on docs.rs #52

Closed
tal-zvon opened this issue Mar 8, 2021 · 5 comments · Fixed by #64
Closed

Please include Async documentation on docs.rs #52

tal-zvon opened this issue Mar 8, 2021 · 5 comments · Fixed by #64

Comments

@tal-zvon
Copy link

tal-zvon commented Mar 8, 2021

There is no mention of AsyncLineEventHandle anywhere on docs.rs. The only way to see this documentation is to build it locally with cargo doc, which is a bit of a pain, especially since many of the people using gpio-cdev are working on a raspberry pi, and if they are running the lite version of Raspbian, without a GUI, as I am, there is no browser, so cargo doc --open won't work. We need to manually go in and copy the docs directory to a different computer to read it.

When I did cargo doc on my project, it generated 16k files. Using scp to copy them over to my other computer was going to take like half an hour. I had to interrupt the scp copy operation, tar the 16k of doc html files, transfer it as one file, and unarchive it before opening it. The whole process took like 20 minutes. It would have been nice if I could have just found the documentation on docs.rs in seconds, as I do with most other documentation.

@nelsonjchen
Copy link

@nelsonjchen
Copy link

@tal-zvon Not great, but you might be able to use something like python3 -m http.server to just serve the doc html directory and browse the files from your workstation. Should be faster than SCP/tar-ball/etc.

@tal-zvon
Copy link
Author

tal-zvon commented Mar 8, 2021

Yup - that's one way to go. Would be nice if we didn't need to jump through hoops to see that section of documentation though.

@ryankurte
Copy link

ryankurte commented Mar 8, 2021

Hey there, thanks for opening the issue. It's possible to use docsrs attributes (#[cfg_attr(docsrs, doc(cfg(feature = "async-tokio")))]) to show these features on docs.rs, which were recently added here, we just haven't yet published a release.

hopefully once we ship 0.4.1 the AsyncLineEventHandle stuff will all appear ^_^

@tal-zvon
Copy link
Author

tal-zvon commented Mar 8, 2021

Awesome! I'd close the issue, but it seems that it's set to auto-close when 0.4.1 is released. I guess I'll keep it open for people who run into the same issue, so they can find the answer easier, until the 0.4.1 is released, which will both solve, and auto-close this.

Thanks

@bors bors bot closed this as completed in bd58cf1 Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants