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

[Doubt] Using as library #33

Open
marc2332 opened this issue Apr 21, 2022 · 3 comments
Open

[Doubt] Using as library #33

marc2332 opened this issue Apr 21, 2022 · 3 comments

Comments

@marc2332
Copy link

Hey!

Would it be possible to use this as a library? I am working on my code editor (backend in Rust and frontend TypeScript) and I think this would be a perfect match for remote situations. I would like to use it directly from my rusty code!

What do you think? 😄

If that actually makes sense, and you are OK with the idea, I can try contributing it by making it a cargo workspace, so you end up having the library and the existing CLI.

Thank you, I appreciate this work :D

@marc2332 marc2332 changed the title [Doub] Using as library [Doubt] Using as library Apr 21, 2022
@kazk
Copy link
Member

kazk commented Apr 25, 2022

Let me think about it. We shouldn't need to make a workspace, though. A crate can be lib+bin with src/lib.rs and src/main.rs.

Things to do:

  • Finish WebSocket permessage-deflate PR. Can't publish the updated crate until this is done.
  • Change the codec to use httparse instead of nom
  • Use axum instead of warp
  • Decide what/how to export as a library

@marc2332
Copy link
Author

A crate can be lib+bin with src/lib.rs and src/main.rs.

Oh, true. So much simpler

@ShafSpecs
Copy link

Is this still in the works? I would also love to have this as a library ❤️

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

3 participants