package:

  # When releasing to crates.io:
  #
  # - last check for all TODO, FIXME, expect, unwrap.
  # - recheck log statements (informative, none left that were just for development, ...)
  # - `cargo +nightly doc` and re-read and final polish of documentation.
  #
  # - Update CHANGELOG.md.
  # - Update version numbers in Cargo.yml, Cargo.toml, install section of readme.
  #
  # - `touch **.rs && cargo clippy --tests --examples --benches --all-features`
  # - `cargo update`
  # - `cargo udeps --all-targets --all-features`
  # - `cargo audit`
  # - `cargo crev crate verify --show-all --recursive` and review.
  # - 'cargo test --all-targets --all-features'
  #
  # - push dev and verify CI result
  # - `cargo test` on dependent crates
  #
  # - cargo publish
  # - `git checkout master && git merge dev --no-ff`
  # - `git tag x.x.x` with version number.
  # - `git push && git push --tags`
  #
  version       : 0.3.0
  name          : futures_cbor_codec
  authors       : [ Naja Melan <najamelan@autistici.org> ]
  description   : A codec for framing an AsyncRead/AsyncWrite with cbor for all types that are serializable with serde
  documentation : https://docs.rs/futures_cbor_codec
  repository    : https://github.com/najamelan/futures_cbor_codec
  readme        : README.md
  keywords      : [ cbor, futures, framing, serialization ]
  categories    : [ asynchronous, network-programming ]
  license       : Apache-2.0/MIT
  exclude       : [ tests, examples, ci, .travis.yml, TODO.md, CONTRIBUTING.md ]
  edition       : "2018"

  metadata:
    docs:
      rs:
        all-features: true
        targets     : []


badges:

  maintenance : { status     : actively-developed           }
  travis-ci   : { repository : najamelan/futures_cbor_codec }


dependencies:

  # Public dependencies (bump major if changing any version number here)
  # Means we use types from these crates in our public API.
  #
  asynchronous-codec: ^0.6   # traits Encoder/Decoder
  serde_cbor        : ^0.11
  bytes             : ^1     # public dep of futures_codec, so they should always change together
  serde             : ^1     # we require Serialize + Deserialize

  # Private dependencies
  #


dev-dependencies:

  futures_ringbuf : ^0.3
  futures         : ^0.3


build-dependencies:

  rustc_version: ^0.3


profile:

  release:

    codegen-units: 1


target:

  'cfg(target_arch = "wasm32")':

    dev-dependencies:

      wasm-bindgen       : ^0.2
      wasm-bindgen-test  : ^0.3
      # getrandom          : { version: ^0.1, features: [ wasm-bindgen ] }
