Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 27 11:16
    halvnykterist commented #253
  • Nov 24 12:14
    Boscop commented #216
  • Nov 24 12:14
    Boscop commented #216
  • Nov 24 12:13
    Boscop commented #216
  • Nov 24 09:16
    bors[bot] closed #288
  • Nov 24 09:16
    bors[bot] closed #285
  • Nov 24 09:16

    bors[bot] on master

    Fix check for large unsigned nu… Add test for decoding large int… Merge #288 288: Fix large inte… (compare)

  • Nov 24 09:16
    bors[bot] commented #288
  • Nov 24 09:14

    bors[bot] on staging.tmp

    (compare)

  • Nov 24 09:14

    bors[bot] on staging

    Fix check for large unsigned nu… Add test for decoding large int… Merge #288 288: Fix large inte… (compare)

  • Nov 24 09:14

    bors[bot] on staging.tmp

    Fix check for large unsigned nu… Add test for decoding large int… [ci skip][skip ci][skip netlify… (compare)

  • Nov 24 09:14

    bors[bot] on staging.tmp

    [ci skip][skip ci][skip netlify] (compare)

  • Nov 24 09:13
    torkleyy commented #288
  • Nov 24 09:13
    torkleyy closed #287
  • Nov 23 16:38
    JakubValtar synchronize #288
  • Nov 23 16:33
    JakubValtar synchronize #288
  • Nov 23 16:31
    kvark review_requested #288
  • Nov 23 16:30
    JakubValtar synchronize #288
  • Nov 23 16:25
    JakubValtar opened #288
  • Nov 23 16:07
    torkleyy edited #287
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?