Git Product home page Git Product logo

Comments (6)

sanmai-NL avatar sanmai-NL commented on August 21, 2024

Based on a cursory look at the code, the substitution would be easy. Are you in favor, maintainer?

from acme-client.

onur avatar onur commented on August 21, 2024

@sanmai-NL of course I am in favor, but I haven't much free time to work on this issue.

from acme-client.

Albibek avatar Albibek commented on August 21, 2024

Hi.
I've tried to do the migration. This is actually not so simple as it seems since serde is using more Strings instead of &str. It's still doable at the price of some clones/unwraps that will probably change API a bit in some places.
Here's the patch with Directory migrated to serde_json::Value instead of rustc_serialize::Json:
https://github.com/Albibek/letsencrypt-rs/commit/61ba44c4a404fa3845e57a6b0474cf2127e6e890

Let me know if you are interested, I'll finish the migration. and submit a PR. Also let me know if you want to stick to some really fixed serde semver including minors - I'll change the versions as well.

Cheerz.

from acme-client.

dtolnay avatar dtolnay commented on August 21, 2024

The equivalent of rustc_serialize::json::Json::as_string is serde_json::Value::as_str. Was that the only String vs &str issue you saw?

from acme-client.

Albibek avatar Albibek commented on August 21, 2024

Oh my bad. I was wrong about this function, thinking it should do a full serialize. I will try again. Anyways, my question about you being interested is still actual :).

from acme-client.

onur avatar onur commented on August 21, 2024

@Albibek thanks for working on this issue. Yes, we still want to drop rustc-serialize and use serde on this crate πŸ‘

I believe we can achieve this without changing public API and unwraps. None of the public API functions are using a rustc-serialize type.

from acme-client.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.