serde

Serialization framework for Rust

Latest version: 1.0.215 registry icon
Maintenance score
100
Safety score
100
Popularity score
100
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
1.0.215 0 0 0 0 0
1.0.214 0 0 0 0 0
1.0.213 0 0 0 0 0
1.0.212 0 0 0 0 0
1.0.211 0 0 0 0 0
1.0.210 0 0 0 0 0
1.0.209 0 0 0 0 0
1.0.208 0 0 0 0 0
1.0.207 0 0 0 0 0
1.0.206 0 0 0 0 0
1.0.205 0 0 0 0 0
1.0.204 0 0 0 0 0
1.0.203 0 0 0 0 0
1.0.202 0 0 0 0 0
1.0.201 0 0 0 0 0
1.0.200 0 0 0 0 0
1.0.199 0 0 0 0 0
1.0.198 0 0 0 0 0
1.0.197 0 0 0 0 0
1.0.196 0 0 0 0 0
1.0.195 0 0 0 0 0
1.0.194 0 0 0 0 0
1.0.193 0 0 0 0 0
1.0.192 0 0 0 0 0
1.0.191 0 0 0 0 0
1.0.190 0 0 0 0 0
1.0.189 0 0 0 0 0
1.0.188 0 0 0 0 0
1.0.187 0 0 0 0 0
1.0.186 0 0 0 0 0
1.0.185 0 0 0 0 0
1.0.184 0 0 0 0 0
1.0.183 0 0 0 0 0
1.0.182 0 0 0 0 0
1.0.181 0 0 0 0 0
1.0.180 0 0 0 0 0
1.0.179 0 0 0 0 0
1.0.178 0 0 0 0 0
1.0.177 0 0 0 0 0
1.0.176 0 0 0 0 0
1.0.175 0 0 0 0 0
1.0.174 0 0 0 0 0
1.0.173 0 0 0 0 0
1.0.172 0 0 0 0 0
1.0.171 0 0 0 0 0
1.0.170 0 0 0 0 0
1.0.169 0 0 0 0 0
1.0.168 0 0 0 0 0
1.0.167 0 0 0 0 0
1.0.166 0 0 0 0 0
1.0.165 0 0 0 0 0
1.0.164 0 0 0 0 0
1.0.163 0 0 0 0 0
1.0.162 0 0 0 0 0
1.0.161 0 0 0 0 0
1.0.160 0 0 0 0 0
1.0.159 0 0 0 0 0
1.0.158 0 0 0 0 0
1.0.157 0 0 0 0 0
1.0.156 0 0 0 0 0
1.0.155 0 0 0 0 0
1.0.154 0 0 0 0 0
1.0.153 0 0 0 0 0
1.0.152 0 0 0 0 0
1.0.151 0 0 0 0 0
1.0.150 0 0 0 0 0
1.0.149 0 0 0 0 0
1.0.148 0 0 0 0 0
1.0.147 0 0 0 0 0
1.0.146 0 0 0 0 0
1.0.145 0 0 0 0 0
1.0.144 0 0 0 0 0
1.0.143 0 0 0 0 0
1.0.142 0 0 0 0 0
1.0.141 0 0 0 0 0
1.0.140 0 0 0 0 0
1.0.139 0 0 0 0 0
1.0.138 0 0 0 0 0
1.0.137 0 0 0 0 0
1.0.136 0 0 0 0 0
1.0.135 0 0 0 0 0
1.0.134 0 0 0 0 0
1.0.133 0 0 0 0 0
1.0.132 0 0 0 0 0
1.0.131 0 0 0 0 0
1.0.130 0 0 0 0 0
1.0.129 0 0 0 0 0
1.0.128 0 0 0 0 0
1.0.127 0 0 0 0 0
1.0.126 0 0 0 0 0
1.0.125 0 0 0 0 0
1.0.124 0 0 0 0 0
1.0.123 0 0 0 0 0
1.0.122 0 0 0 0 0
1.0.121 0 0 0 0 0
1.0.120 0 0 0 0 0
1.0.119 0 0 0 0 0
1.0.118 0 0 0 0 0
1.0.117 0 0 0 0 0
1.0.116 0 0 0 0 0
1.0.115 0 0 0 0 0
1.0.114 0 0 0 0 0
1.0.113 0 0 0 0 0
1.0.112 0 0 0 0 0
1.0.111 0 0 0 0 0
1.0.110 0 0 0 0 0
1.0.109 0 0 0 0 0
1.0.108 0 0 0 0 0
1.0.107 0 0 0 0 0
1.0.106 0 0 0 0 0
1.0.105 0 0 0 0 0
1.0.104 0 0 0 0 0
1.0.103 0 0 0 0 0
1.0.102 0 0 0 0 0
1.0.101 0 0 0 0 0
1.0.100 0 0 0 0 0
1.0.99 0 0 0 0 0
1.0.98 0 0 0 0 0
1.0.97 0 0 0 0 0
1.0.96 0 0 0 0 0
1.0.95 0 0 0 0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 0
0.8.6 0 0 0 0 0
0.8.5 0 0 0 0 0
0.8.4 0 0 0 0 0
0.8.3 0 0 0 0 0
0.8.2 0 0 0 0 0
0.8.1 0 0 0 0 0
0.8.0 0 0 0 0 0
0.7.15 0 0 0 0 0
0.7.14 0 0 0 0 0
0.7.13 0 0 0 0 0
0.7.12 0 0 0 0 0
0.7.11 0 0 0 0 0
0.7.10 0 0 0 0 0
0.7.9 0 0 0 0 0
0.7.8 0 0 0 0 0
0.7.7 0 0 0 0 0
0.7.6 0 0 0 0 0
0.7.5 0 0 0 0 0
0.7.4 0 0 0 0 0
0.7.0 0 0 0 0 0
0.6.15 0 0 0 0 0
0.6.14 0 0 0 0 0
0.6.13 0 0 0 0 0
0.6.12 0 0 0 0 0
0.6.11 0 0 0 0 0
0.6.10 0 0 0 0 0
0.6.7 0 0 0 0 0
0.6.6 0 0 0 0 0
0.6.1 0 0 0 0 0
0.6.0 0 0 0 0 0
0.5.3 0 0 0 0 0
0.5.2 0 0 0 0 0
0.5.1 0 0 0 0 0
0.5.0 0 0 0 0 0
0.4.3 0 0 0 0 0
0.4.2 0 0 0 0 0
0.4.1 0 0 0 0 0
0.4.0 0 0 0 0 0
0.3.3 0 0 0 0 0
0.3.2 0 0 0 0 0
0.3.1 0 0 0 0 0
0.3.0 0 0 0 0 0
0.2.1 0 0 0 0 0
0.2.0 0 0 0 0 0
0.0.0 0 0 0 0 0

Stability
Latest release:

1.0.215 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

Apache-2.0   -   Apache License 2.0

Not a wildcard

Not proprietary

OSI Compliant


MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



Serde   Build Status Latest Version serde msrv serde_derive msrv

Serde is a framework for serializing and deserializing Rust data structures efficiently and generically.


You may be looking for:

Serde in action

Click to show Cargo.toml. Run this code in the playground.
[dependencies]

# The core APIs, including the Serialize and Deserialize traits. Always
# required when using Serde. The "derive" feature is only required when
# using #[derive(Serialize, Deserialize)] to make Serde work with structs
# and enums defined in your crate.
serde = { version = "1.0", features = ["derive"] }

# Each data format lives in its own crate; the sample code below uses JSON
# but you may be using a different one.
serde_json = "1.0"

use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
struct Point {
    x: i32,
    y: i32,
}

fn main() {
    let point = Point { x: 1, y: 2 };

    // Convert the Point to a JSON string.
    let serialized = serde_json::to_string(&point).unwrap();

    // Prints serialized = {"x":1,"y":2}
    println!("serialized = {}", serialized);

    // Convert the JSON string back to a Point.
    let deserialized: Point = serde_json::from_str(&serialized).unwrap();

    // Prints deserialized = Point { x: 1, y: 2 }
    println!("deserialized = {:?}", deserialized);
}

Getting help

Serde is one of the most widely used Rust libraries so any place that Rustaceans congregate will be able to help you out. For chat, consider trying the #rust-questions or #rust-beginners channels of the unofficial community Discord (invite: https://discord.gg/rust-lang-community), the #rust-usage or #beginners channels of the official Rust Project Discord (invite: https://discord.gg/rust-lang), or the #general stream in Zulip. For asynchronous, consider the [rust] tag on StackOverflow, the /r/rust subreddit which has a pinned weekly easy questions post, or the Rust Discourse forum. It's acceptable to file a support issue in this repo but they tend not to get as many eyes as any of the above and may get closed without a response after some time.


License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Serde by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.