Boscop

Results 547 comments of Boscop

I'd also really like to have this feature, also for modifying user-written config files. Btw, is there something like serde that preserves whitespace & comments, that any format can piggyback...

One workaround I can think of, to get this feature with the current crates, (but with some overhead) is: 1. Use serde to parse, then serialize it again to string....

@kvark It looks like those 2 crates also don't preserve whitespace/comment information.

@xMAC94x I implemented this approach once, for my transpiler from Rust to "Rust with pythonic syntax" because I needed to have the exact spans of all tokens, to be able...

> > But then it's not pure RPC anymore? > > What do you mean by this? I mean, if middlewares come into the picture, there is no 1-to-1 correspondence...

How would that look like, with a tarpc service?

So I should just use the `FutureService` and run 1 instance of it, and wrap all blocking (e.g. db) calls into `blocking`? But then I'd only have 1 thread processing...

But how can I make all these instances listen on the same port? Btw, before I call `blocking`, do I have to create the global thread pool myself?

So every thread can only process one client request at a time? Let's say I only use 1 thread: Does it mean other client requests get queued and processed serially...