Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 22 18:42
    vi commented #216
  • Sep 22 15:48
    coderedart commented #216
  • Sep 20 14:46
  • Sep 19 18:04
    kvark labeled #315
  • Sep 19 18:03
    kvark commented #315
  • Sep 18 15:55
    LEXUGE opened #315
  • Sep 15 18:53
    derwiath commented #7
  • Sep 15 18:43
    derwiath commented #7
  • Sep 15 18:42
    derwiath commented #7
  • Sep 15 15:59
    derwiath commented #6
  • Sep 12 04:36
    savchenko commented #6
  • Sep 09 16:52

    kvark on v0.6

    Support raw identifiers Bump version to 0.6.5 Fix bitflags breaking MSRV (compare)

  • Sep 09 16:52
    kvark closed #313
  • Sep 09 16:52
    kvark edited #314
  • Sep 09 16:52

    kvark on master

    Support raw identifiers Fix bitflags breaking MSRV Remove bors (compare)

  • Sep 09 16:52
    kvark closed #314
  • Sep 09 16:48
    kvark synchronize #314
  • Sep 09 16:37
    kvark synchronize #314
  • Sep 09 16:32
    kvark synchronize #313
  • Sep 09 16:22
    kvark synchronize #313
Dzmitry Malyshau
@kvark
maybe we should save tuple as a struct then
with field = index
Thomas Schaller
@torkleyy
we can read it back, but it's just that it gets serialized as [true, 4.0, Foo] instead of (true, 4.0, Foo).
Dzmitry Malyshau
@kvark
can we serialize it as (0: true, 1: 4.0, 2: Foo) instead?
hmm, I guess it would be _0, _1 and _2
Thomas Schaller
@torkleyy
We wouldn't be able to serialize it back into a tuple.
*deserialize
Dzmitry Malyshau
@kvark
hmm
right
Thomas Schaller
@torkleyy
I sometimes feel that Serde's design is too much influenced by JSON.
Dzmitry Malyshau
@kvark
right
Thomas Schaller
@torkleyy
That causes a couple of difficulties here and there with our more concise format.
CinchBlue
@CinchBlue
hi
Dzmitry Malyshau
@kvark
Hey
Dzmitry Malyshau
@kvark
Dzmitry Malyshau
@kvark
Thomas Schaller
@torkleyy
:tada:
Dzmitry Malyshau
@kvark
tested on a different machine now, works like a charm :)
Dzmitry Malyshau
@kvark
holy macaroni
kvark @kvark just realized we have 500 stars
Thomas Schaller
@torkleyy
hehe
using RON in two places now in vange-rs
Thomas Schaller
@torkleyy
Sweet, didn't know you were still working on that project.
Dzmitry Malyshau
@kvark
Sometimes
There is demand for modding tools, which are easy to build with my project
Thomas Schaller
@torkleyy
Ah
just bought Vangers ^^
Dzmitry Malyshau
@kvark
yay!!!
Thomas Schaller
@torkleyy
Let's talk again in a year when I understood the game ;P
Dzmitry Malyshau
@kvark
lol
Thomas Schaller
@torkleyy
r? ron-rs/ron#146 @kvark
Thomas Schaller
@torkleyy
Does anybody know why GitHub is waiting on bors all the time? It seems bors is registered as status report when it's not even running...
Dzmitry Malyshau
@kvark
Will have a look later today!
Thomas Schaller
@torkleyy
Dzmitry Malyshau
@kvark
:tada:
Karl Melvan
@kmelvn
Is there a way to disable serde's rename_all attributes, but only when serializing/deserializing with Ron? Inputs to my program are all camelCase JSON, so that's why I use rename_all="camelCase for Serde, but I'd like Ron to use normal names without renaming... any possibility of doing that?
Dzmitry Malyshau
@kvark
Hah, I don't know. It seems like RON wouldn't even know about this, need to be handled by serde.
Karl Melvan
@kmelvn
yeah, I figured as much... thanks! I'll ask the serde guys, maybe there's a switch somewhere :)
Dzmitry Malyshau
@kvark
great, good luck!
Karl Melvan
@kmelvn

can I force Ron to deserialize directly into a newtype (like serde_json does)?

for example, I have struct MyStr(String), and a field in a larger struct my_str: MyStr

My Ron file then has to have my_str: MyStr("something") or my_str: ("something")
any way to get it to be just my_str: "something" ?
ahhh, there's unwrap_newtypes extension... clever :)
then my question becomes: can I activate extensions in code, rather than in .ron files?
Dzmitry Malyshau
@kvark
I don't think you can, no
Dzmitry Malyshau
@kvark
@torkleyy do you mind migrating this chat over to Matrix?