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

Write good documentation. #20

Open
00imvj00 opened this issue Nov 11, 2019 · 4 comments
Open

Write good documentation. #20

00imvj00 opened this issue Nov 11, 2019 · 4 comments

Comments

@00imvj00
Copy link
Owner

We, need to have separate doc page or wiki page.

@vincentdephily
Copy link
Collaborator

I think a format that works well for Rust is writing a tutorial module, so the docs are tested by the toolchain, sit along the "reference" doc, can be viewed both locally and on docs.rs, and aren't tied to github.

That said, I'm not sure there's a big need for separate doc pages ? There's certainly scope for improving the module-level docs, the inline docs and examples (I've got some WIP for utils.rs), but mqttrs has a very straightforward API to begin with.

I've started writing an MVP sync client (no CLI option, just connects, subscribes, publishes one message, and exits) using std and bytes only, but it's currently buggy. I think we should provide that and an async example using tokio (should we use the latest version with async/await ?) or libstd-async. I'll also link to my server as soon as it's FOSS, as a full-size tokio example (currently using tokio and old-style futures, but might eventually switch to async/await).

I'll try to finish that MVP client example, and get the server released.

@00imvj00
Copy link
Owner Author

Yes that is what i was thinking. one of the issues i have faced using libs is, i didn't know how to integrate this with other popular frameworks. so, if we can provide something like that, it makes very easy for lib users to just read the example and get on with the job instead of reading the whole docs or code.

@vincentdephily
Copy link
Collaborator

Not really documentation per se, but I've finally opensourced https://github.com/vincentdephily/mqttest, which could be mentioned as a code example. I won't make a PR just for a readme, but I might manage to finish the MVP client example in the next few weeks, and send a PR with both.

@00imvj00
Copy link
Owner Author

@vincentdephily nice work.

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

No branches or pull requests

2 participants