language: rust
env:
  - RUST_LOG=warn RUST_BACKTRACE=1
matrix:
  include:
    # Minimal supported rustc version
    - rust: 1.24.0
      script:
        # Build only the library (examples may fail)
        - cargo build
    - rust: stable
    - rust: beta
    - rust: nightly
    - rust: nightly-2018-03-07
      script:
        # nostd build
        # byteorder crate version is configured here to fix build in old nightly compiler
        # See: https://github.com/BurntSushi/byteorder/pull/150
        - cargo update && cargo update -p byteorder --precise 1.2.7
        - cargo build --no-default-features --features core_io
        - cargo build --no-default-features --features core_io,alloc,core_io/collections
    - rust: nightly-2019-07-01
      script:
        - cargo build --no-default-features --features core_io
        - cargo build --no-default-features --features core_io,alloc,core_io/collections

  allow_failures:
    - rust: nightly

language: rust
env:
  - RUST_LOG=warn RUST_BACKTRACE=1
matrix:
  include:
    # Minimal supported rustc version
    - rust: 1.24.0
      script:
        # Build only the library (examples may fail)
        - cargo build
    - rust: stable
    - rust: beta
    - rust: nightly
    - rust: nightly-2018-03-07
      script:
        # nostd build
        # byteorder crate version is configured here to fix build in old nightly compiler
        # See: https://github.com/BurntSushi/byteorder/pull/150
        - cargo update && cargo update -p byteorder --precise 1.2.7
        - cargo build --no-default-features --features core_io
        - cargo build --no-default-features --features core_io,lfn
        - cargo build --no-default-features --features core_io,alloc,lfn,unicode
    - rust: nightly-2019-07-01
      script:
        - cargo build --no-default-features --features core_io
        - cargo build --no-default-features --features core_io,lfn
        - cargo build --no-default-features --features core_io,alloc,lfn,unicode

  allow_failures:
    - rust: nightly

Add build with "lfn" but no "alloc" feature in Travis
Add build with "lfn" but no "alloc" feature in Travis
