Prepare documentation for initial release
parent
b666ac0c84
commit
04c432c237
|
@ -0,0 +1,12 @@
|
||||||
|
# Changelog
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.1.0] - 2020-06-01
|
||||||
|
|
||||||
|
* Initial Release
|
||||||
|
|
17
README.md
17
README.md
|
@ -9,7 +9,6 @@ in Crystal.
|
||||||
|
|
||||||
- [Installation](#installation)
|
- [Installation](#installation)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [API](./docs/api.md)
|
|
||||||
- [Supported Tags](#supported-tags)
|
- [Supported Tags](#supported-tags)
|
||||||
- [Limitations](#limitations)
|
- [Limitations](#limitations)
|
||||||
- [Community](#community)
|
- [Community](#community)
|
||||||
|
@ -130,7 +129,7 @@ end
|
||||||
|
|
||||||
Deserialization also respects default values of variables:
|
Deserialization also respects default values of variables:
|
||||||
|
|
||||||
```
|
```crystal
|
||||||
require "cbor"
|
require "cbor"
|
||||||
|
|
||||||
struct A
|
struct A
|
||||||
|
@ -150,7 +149,7 @@ the CBOR document will be stored in a `Hash(String, CBOR::Type)`.
|
||||||
On serialization, any keys inside `cbor_unmapped` will be serialized and appended
|
On serialization, any keys inside `cbor_unmapped` will be serialized and appended
|
||||||
to the current cbor map.
|
to the current cbor map.
|
||||||
|
|
||||||
```
|
```crystal
|
||||||
require "cbor"
|
require "cbor"
|
||||||
|
|
||||||
struct A
|
struct A
|
||||||
|
@ -173,12 +172,12 @@ supported properties:
|
||||||
- **nil_as_undefined**: if `true`, emits a `nil` value as undefined
|
- **nil_as_undefined**: if `true`, emits a `nil` value as undefined
|
||||||
(by default nil emits `null`)
|
(by default nil emits `null`)
|
||||||
|
|
||||||
```
|
```crystal
|
||||||
require "json"
|
require "cbor"
|
||||||
|
|
||||||
@[CBOR::Serializable::Options(emit_nulls: true)]
|
@[CBOR::Serializable::Options(emit_nulls: true)]
|
||||||
class A
|
class A
|
||||||
include JSON::Serializable
|
include CBOR::Serializable
|
||||||
@a : Int32?
|
@a : Int32?
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
@ -204,7 +203,11 @@ While this library supports lengths expressed as a `UInt64`, it must not exceed
|
||||||
|
|
||||||
## Community
|
## Community
|
||||||
|
|
||||||
TODO: Write development instructions here
|
If you're stuck and need help, if you have any questions, or if you simply want
|
||||||
|
to stay up to date with the latest news and developments, you can subscribe to
|
||||||
|
the [crystal-cbor mailing list][mailing-list].
|
||||||
|
|
||||||
|
If you found an issue, you can [open an issue on the ticket tracker][tickets].
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@ require "big"
|
||||||
|
|
||||||
require "./cbor/**"
|
require "./cbor/**"
|
||||||
|
|
||||||
# TODO: Write documentation for `CBOR`
|
|
||||||
module CBOR
|
module CBOR
|
||||||
VERSION = "0.1.0"
|
VERSION = "0.1.0"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue