hwchen

u/hwchen


r/rust•

Hey all, I'm excited to release secret-service 2.0! It's a library for interacting with the secret-service api, which gnome-keyring and kde wallet implement. It's also the linux backend to keyring, a cross-platform library for storing and accessing secrets on the system vault.

The reason this is a big release is that the library is now using zbus to speak to dbus. This means pure Rust, and no separate installation of libdbus necessary! This should greatly enhance developer and end-user experience. Many thanks to u/zeenix for the zbus crate, and for giving me feedback on th

331

r/rust•

tophat is a small, pragmatic, and flexible async http server library for Rust.

Its main points:

  • no async runtime dependencies (user provides runtime).
  • works with AsyncRead/AsyncWrite.
  • Fn(Request, ResponseWriter) -> ResponseWritten instead of Fn(Request) -> Response allows more observability of response lifecycle.

I want to first thank the Rust async and web community for all the work they’ve done. Tophat is largely a remix of code from async-h1, with a good sprinkling of libraries from the hyperium project.

I've written a [blog post](https://blog.hwc.io/posts/introduc

255

r/rust•

I wrote the beginnings of a library to interface with EventSource. I thought it would be a quick and easy project, but the async part has taken me over a day by now.

repo

The code is still in rough shape, since I've just managed to get the hard stuff cobbled together. Still, I wanted to post this here in case anybody can learn from it, and perhaps I can get some feedback also.

(I may write a blog post on this, especially if there's another round of improvements)

Some of the stuff I learned:

  • how to poll future/stream inside of an impl
10

r/rust•

It looks like a lot of people have thought about [how to implement dataframes in Rust](https://www.reddit.com/r/rust/comments/apo66e/dataframes_what_do_you_need/). I think that it's difficult enough that trying out many different approaches is valuable, and it's also nice to work together in some fashion. So...

Would anybody be interested in something like a working group? Or whatever a loose discussion group would be.

I'd be super excited to see some of the other approaches people have, and many people spoke up in this thread with WIP that I hadn't heard of before.

And I would be great to be able to bounc

229

r/rust•

Every now and then somebody asks if there’s a data frame library or pandas equivalent available. There’s been a few attempts that I know about, but they are a long way from matching the feature set of pandas.

A dataframe library in rust is something I keep thinking about. For my uses case, etl, I would love to have a library to make some basic tasks easy: melting, pivoting, splitting string columns, joins, concat, apply/map, etc. I’ve made some attempts at a basic api, but I think I need more type artistry to create an ergonomic interface.

There’s also a world of scientific computing in pandas that I don’t know much about.

It’s been suggested to just u

4320

You've reached the end of this feed.