Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make prost a no_std compatible library, and prost-build able to gen… #215

Closed
wants to merge 38 commits into from

Commits on Sep 9, 2019

  1. Make prost a no_std compatible library, and prost-build able to gen…

    …erate `no_std` code
    
    The alternative is to get collections types from `core` and `alloc`.
    In the `no_std` mode in `prost_build`, we force it to always use BTreeMap
    since HashMap was not stabilized in `alloc::collections` library.
    
    The functionality is identical and the only incompatibilities in the interface
    are that we cannot use `std::error::Error` or `std::io::Error` in `no_std` mode
    because these types have not been moved to `alloc` and there is no alternative.
    
    This also uprevs `bytes` dependency to 0.5, and fixes up breakage after IntoBuf api
    is removed in `bytes` crate.
    
    Note that for now, we put a patch to `bytes` to pin to a specific commit in master,
    since bytes `0.5` is not released yet.
    cbeck88 committed Sep 9, 2019
    Configuration menu
    Copy the full SHA
    fc7a772 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2019

  1. Configuration menu
    Copy the full SHA
    cc51c9d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    28b9326 View commit details
    Browse the repository at this point in the history
  3. more WIP

    cbeck88 committed Sep 12, 2019
    Configuration menu
    Copy the full SHA
    01a500d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    21b5866 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8e6d794 View commit details
    Browse the repository at this point in the history
  6. Use git dependencies for bytes, and use alt-failure crate in prost-de…

    …rive
    
    as a workaround for feature-unification issues
    cbeck88 committed Sep 12, 2019
    Configuration menu
    Copy the full SHA
    e5d878c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0804e3d View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2019

  1. Configuration menu
    Copy the full SHA
    7b9beab View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2019

  1. uprev bytes to 0.5

    cbeck88 committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    af60702 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2020

  1. Configuration menu
    Copy the full SHA
    da06e9c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a14e694 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9758c14 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4d1e923 View commit details
    Browse the repository at this point in the history
  5. Run cargo fmt

    dflemstr committed Feb 24, 2020
    Configuration menu
    Copy the full SHA
    e3015a6 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2020

  1. Merge pull request #1 from dflemstr/no_std

    Merge in 0.6.1 changes into no_std fork
    cbeck88 committed Feb 27, 2020
    Configuration menu
    Copy the full SHA
    af705d5 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2020

  1. Configuration menu
    Copy the full SHA
    3939650 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d61beee View commit details
    Browse the repository at this point in the history
  3. more fixes in prost-types

    cbeck88 committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    2d77d5f View commit details
    Browse the repository at this point in the history
  4. more fixes in prost-derive

    cbeck88 committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    64af573 View commit details
    Browse the repository at this point in the history
  5. Make prost-build not insert , alloc proc-macro attributes

    Leaves the "use_alloc_collections_lib" stuff because that helps
    people who don't want to write BTreeMap everywhere. But maybe it
    should go also, and they should have to do that.
    cbeck88 committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    fa0a5ed View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    51e4539 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2020

  1. Remove "CollectionsLib" from prost-build, but leave "force_btree_map"

    This option is helpful if someone needs to make the code-gen be
    no_std compatible, otherwise they have to enumerate all the btree types
    in their build.rs which is onerous
    cbeck88 committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    db72894 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abe2005 View commit details
    Browse the repository at this point in the history
  3. fixup in tests

    cbeck88 committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    f2a241d View commit details
    Browse the repository at this point in the history
  4. address many review comments

    cbeck88 committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    4d7bf10 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    41e5bf7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f2bf500 View commit details
    Browse the repository at this point in the history
  7. fixup an earlier commit

    cbeck88 committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    4dab985 View commit details
    Browse the repository at this point in the history
  8. fix build

    cbeck88 committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    8f2ba49 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cc3574b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f5a7d00 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    490247d View commit details
    Browse the repository at this point in the history
  12. Fix build

    cbeck88 committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    7a292b5 View commit details
    Browse the repository at this point in the history
  13. remove noise in the diff

    cbeck88 committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    7a0b294 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    454a01d View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2020

  1. Remove leading :: in many prost-types and prost-build code generator

    This allows simplifying tests a bit, removing unnecessary `extern crate alloc;`
    cbeck88 committed Mar 4, 2020
    Configuration menu
    Copy the full SHA
    59d36dd View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2020

  1. Do hidden re-export of alloc crate from prost, use in prost-build, pr…

    …ost-derive
    
    This allows to remove `extern crate alloc;` from `protobuf` crate,
    and I think it means that users who don't care about `no_std` don't
    have to write `extern crate alloc;` to use prost
    cbeck88 committed Mar 5, 2020
    Configuration menu
    Copy the full SHA
    4e19053 View commit details
    Browse the repository at this point in the history