cnabio / cnab-rs Goto Github PK
View Code? Open in Web Editor NEWA Rust implementation of CNAB Core 1.0-WD
License: MIT License
A Rust implementation of CNAB Core 1.0-WD
License: MIT License
Per the community meeting, we should begin cutting versioned releases and putting them in crates.io
Dependent crates will end up with usages like this:
use libcnab::cnab::Bundle;
All the interesting exports are also currently hidden behind the cnab
module in the generated cargo doc. Perhaps it would be more ergonomic to move everything currently in cnab.rs
to lib.rs
, or re-export everything from lib?
The latter is possible by changing the use statement in lib.rs
:
mod cnab;
pub use crate::cnab::*;
I think the latter option is relatively idiomatic, and keeping lib reserved for mostly doc comments is nice.
Crate names should not use
-rs
or-rust
as a suffix or prefix. Every crate is Rust! It serves no purpose to remind users of this constantly.
Coming from the Rust Language Nursery Documentation.
Should we rename this crate to simply libcnab
?
Per the community meeting today, we decided to rename this library to follow the common conventions.
This ONLY involves renaming the repo
I don't know much about rust, how do I build this thang?
We should represent the JSON Schema using a structured type instead of serde_json.Value
, but that likely entails finding the right crate.
created
is required cnabio/cnab-spec#295bundleReference
is added cnabio/cnab-spec#299/cnab/claim.json
cnabio/cnab-spec#300CNAB_CLAIMS_VERSION
must be set in the invocation imageWe should run tests on master and PRs.
Hi team,
thank you for starting the work on the rust implementation.
Is there any plan to develop the rust-implementation further? ( or in general if there is any contribution document or features being developed currently etc. which can be followed )
We should update the readme with the steps required and examples for using this library, as well as for building and contributing.
This allows zero-copy json parsing, at the cost of complexifying the lifetime handling, and not being able to parse from a stream (as the json string from which the string slices are borrowed must outlive the deserialized structure), thus making Bundle::from_file currently not buildable.
I guess we must choose either to
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.