JasonShin / fp-core.rs

A library for functional programming in Rust
MIT License
1.34k stars 65 forks source link

Rustdocs Usage #26

Open hemangandhi opened 5 years ago

hemangandhi commented 5 years ago

I was wondering if rustdoc was useful for this project (more or less fiddling to get maximal mileage out of rust's tooling).

Particularly, I have a small experiment in a fork. I was wondering if getting the rest of the README into such a format would be reasonable. I think there are a few advantages:

This seems to have a few drawbacks:

If this is interesting, I've also experimented on the azure pipeline, so was wondering how to test that?

JasonShin commented 5 years ago

Thanks =) I will try this out soon

JasonShin commented 5 years ago

Let me play around in your fork. It's an interesting idea

hemangandhi commented 5 years ago

https://github.com/hemangandhi/functional-programming-jargon.rs/blob/doctest/DOCTEST_TODO.md

^ this is my vision so far, though I definitely don't expect the last goal to happen/get merged in any time soon.

JasonShin commented 5 years ago

@hemangandhi Great ideas! I love it. I can work on the linting issues tonight. I was actually checking out how to enable RustDoc the other day according to your example folk but I got confused ... ;)...

Also, if you are interested in turning this into an actual module, let's do this in a separate project. Come and join us on telegram =) https://t.me/joinchat/Hj2nWg58UEWmMFprHvs-iQ

JasonShin commented 5 years ago

We have half solved this issue because now we have a documentation automatically generated on crates.io

https://docs.rs/fp-core/0.1.8/fp_core/