tealdeer-rs / tealdeer

A very fast implementation of tldr in Rust.
https://tealdeer-rs.github.io/tealdeer/
Apache License 2.0
4.17k stars 123 forks source link

Using tealdeer in Rust as a library #283

Closed rbozan closed 2 years ago

rbozan commented 2 years ago

I was wondering if we can tealdeer in Rust without using the CLI but as an usual library. It doesn't seem like it as there is no lib.rs. Is there any plans to have it?

dbrgn commented 2 years ago

No, there are no such plans at the moment. For that we would need to abstract away the configuration and cache management, right now the assumption is always that it's a CLI user application.

niklasmohrin commented 2 years ago

Additionally, I think the ability to break interfaces and change signatures in the code currently outweighs all arguments for tealdeer-as-a-library.

dbrgn commented 2 years ago

I'll close this for now. It's unlikely to be implemented.