PJK / libcbor

CBOR protocol implementation for C
MIT License
341 stars 95 forks source link

Deprecate CBOR_CUSTOM_ALLOC #237

Closed PJK closed 1 year ago

PJK commented 1 year ago

Description

CBOR_CUSTOM_ALLOC was a mistake, the defaults with CBOR_CUSTOM_ALLOC=ON are compatible with CBOR_CUSTOM_ALLOC=OFF.

I would like to remove it going forward. Will keep this PR open for a few weeks to give people a chance to object.

Pros of having the flag:

Cons:

Also reworked the bazel build example since it was miswired and broke due to the flag change

Checklist

codecov-commenter commented 1 year ago

Codecov Report

Merging #237 (c1032ce) into master (3dfc2d5) will not change coverage. The diff coverage is 87.50%.

@@           Coverage Diff           @@
##           master     #237   +/-   ##
=======================================
  Coverage   95.78%   95.78%           
=======================================
  Files          20       20           
  Lines        1543     1543           
=======================================
  Hits         1478     1478           
  Misses         65       65           
Impacted Files Coverage Δ
src/cbor/internal/builder_callbacks.c 89.28% <50.00%> (ø)
src/cbor/serialization.c 85.16% <50.00%> (ø)
src/cbor/bytestrings.c 94.64% <75.00%> (ø)
src/cbor/arrays.c 98.24% <100.00%> (ø)
src/cbor/common.c 100.00% <100.00%> (ø)
src/cbor/floats_ctrls.c 96.66% <100.00%> (ø)
src/cbor/internal/memory_utils.c 93.75% <100.00%> (ø)
src/cbor/internal/stack.c 100.00% <100.00%> (ø)
src/cbor/ints.c 99.00% <100.00%> (ø)
src/cbor/maps.c 96.36% <100.00%> (ø)
... and 2 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more