百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

serde-query

> 编程语言
开源

serde-query 欢迎来到 serde-query,这是一个 Rust 库,可让您为数据编写类似 jq 的查询。为什么使用 serde-query? 1. 效率: 使用 serde-query,您可以在不使用任何第三方库的情况下,轻松地将数据转换为 JSON 格式。

317 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

serde-query 欢迎来到 serde-query,这是一个 Rust 库,可让您为数据编写类似 jq 的查询。为什么使用 serde-query? 1. 效率: 使用 serde-query,您可以在不使用任何第三方库的情况下,轻松地将数据转换为 JSON 格式。

serde-query

Welcome to serde-query, a Rust library that lets you write jq-like queries for your data.

Why serde-query?

  1. Efficiency: With serde-query, you can efficiently extract exactly what you need without wasting the memory.
  2. Helpful error messages: When queries fail, you'll get clear, concise error messages that tell you where and why the failure happens.
  3. Flexibility: serde-query supports any serde-compatible data formats.

Getting started

To get started with serde-query, add it to your Rust project using Cargo:

bash
cargo add serde-query

Or, add it to your Cargo.toml:

toml
[dependencies]
serde-query = "0.2.0"

Example

Array queries

…

Errors

…

Note

This library generates Rust types for each query segment (e.g., .commit, .commit.message, etc.), which may lead to binary bloat and longer compile time.

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言