Explicitly #include <ostream> libchrome will soon include Chromium change crrev.com/1092231, which removes an include of <ostream> from base/numerics/safe_conversions.h. cbor's writer.cc needs such an include for NOTREACHED() << ... Also update copyright notice to pass presubmit checks. BUG=b:266510143 TEST=emerge cbor Change-Id: If6464ef84f998b4baea627c780d0d31f57d66656 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/cbor/+/4189742 Auto-Submit: Georg Neis <[email protected]> Tested-by: Georg Neis <[email protected]> Commit-Queue: Georg Neis <[email protected]> Reviewed-by: Jora Jacobi <[email protected]>
cbor: Concise Binary Object RepresentationThis library is a partial implementation of the RFC 7049 Concise Binary Object Representation standard.
The source code was fetched from chromium/src in order to avoid code duplication.
The cros/upstream/main branch is a mirror of the components/cbor directory from upstream. It is automatically updated to reflect the latest changes in upstream.
To pull in updates from chromium/src, do the following:
git remote update
git checkout -b main cros/main
git merge cros/upstream/main
OWNERS should use the version from main.BUILD.gn should mostly use the version from main, unless the upstream changes the files to be built.#include paths should use the version from main (without “components/”). This should be the majority of the merge conflicts.git revert after committing the merge commit. This preserves the history and makes it clear why a change is being reverted rather than quietly changing it in the merge commit.Push the resulting merge commit with:
(chroot) $ git push HEAD:refs/for/main