Recent Releases of zbor

zbor - 0.20.0

This release introduces BREAKING CHANGES due to Writergate.

  • Replaced std.ArrayList(u8) with std.Io.Writer.Allocating
  • Replaced std.ArrayList(N) with std.ArrayListUnmanaged
  • The writer used by stringify is no longer anytype but *std.Io.Writer

- Zig
Published by r4gus 4 months ago

zbor - 0.19.0

Updated package to support Zig compiler version 0.15.1

- Zig
Published by r4gus 4 months ago

zbor - 0.18.0

What's Changed

  • Support indefinite-length arrays by @emiflake in https://github.com/r4gus/zbor/pull/29
  • Support indefinite-length maps

New Contributors

  • @emiflake made their first contribution in https://github.com/r4gus/zbor/pull/29

Full Changelog: https://github.com/r4gus/zbor/compare/0.17.3...0.18.0

- Zig
Published by r4gus 7 months ago

zbor - 0.17.3

What's Changed

  • Changed the build.zig filename to builder.zig. The zig buildrunner in… by @Thomvanoorschot in https://github.com/r4gus/zbor/pull/28

New Contributors

  • @Thomvanoorschot made their first contribution in https://github.com/r4gus/zbor/pull/28

Full Changelog: https://github.com/r4gus/zbor/compare/0.17.2...0.17.3

- Zig
Published by r4gus 8 months ago

zbor - 0.17.2

- Zig
Published by r4gus 9 months ago

zbor - 0.17.1

Support for a wider range of Writers thanks to @kj4tmp.

- Zig
Published by r4gus 9 months ago

zbor - 0.17.0

  • The option from_callback has been renamed to ignore_override. This is a breaking change!
  • build.zig and build.zig.zon have been updated for Zig v0.14.0

Use this release in you project:

bash zig fetch --save https://github.com/r4gus/zbor/archive/refs/tags/0.17.0.tar.gz

- Zig
Published by r4gus 10 months ago

zbor - 0.17.0

  • The option from_callback has been renamed to ignore_override. This is a breaking change!
  • build.zig and build.zig.zon have been updated for Zig v0.14.0

Use this release in you project:

bash zig fetch --save https://github.com/r4gus/zbor/archive/refs/tags/0.17.0.tar.gz

- Zig
Published by r4gus 10 months ago

zbor - 0.17.0

The option from_callback has been renamed to ignore_override. This is a breaking change!

Use this release in you project:

bash zig fetch --save https://github.com/r4gus/zbor/archive/refs/tags/0.17.0.tar.gz

- Zig
Published by r4gus 11 months ago

zbor - 0.16.0

Supports Zig version 0.14.0 (to be released soon)

- Zig
Published by r4gus 11 months ago

zbor - 0.15.2

Added build.writeFloat() and isFloat16 isFloat32, isFloat64, getFloat16, getFloat32, and getFloat64.

- Zig
Published by r4gus over 1 year ago

zbor - 0.15.1

- Zig
Published by r4gus over 1 year ago

zbor - 0.15.0

Tracking Zig 0.13.0

Hash: 12209a78f8c31b6d65d2249082dc824da4a191f6f7be6a1c1740fc093b765c5ebeea

- Zig
Published by r4gus over 1 year ago

zbor -

- Zig
Published by r4gus over 1 year ago

zbor - 0.14.0

This library now offers a convenient function named ArrayBackedSlice, which enables you to create a wrapper for an array of any size and type. This wrapper implements the cborStringify and cborParse methods, allowing it to seamlessly replace slices (e.g., []const u8) with an array.

- Zig
Published by r4gus over 1 year ago

zbor - 0.13.1

More support for manual serialization.

zig.build.zon: zig .dependencies = .{ .zbor = .{ .url = "https://github.com/r4gus/zbor/archive/refs/tags/0.13.1.tar.gz", .hash = "122051750f4d7ecc9b705f1bbea1d431956306c74dafa4e9b625b11a34fab4c06933", }, },

- Zig
Published by r4gus over 1 year ago

zbor - 0.13.0

Migrated from Zig 0.11.0 to 0.12.0.

- Zig
Published by r4gus over 1 year ago

zbor - 0.12.3

two bug fixes.

Use this to get started:

```zig // build.zig.zon .{ .name = "your-project", .version = "0.1.0",

.dependencies = .{
    .zbor = .{
        .url = "https://github.com/r4gus/zbor/archive/refs/tags/0.12.3.tar.gz",
        .hash = "1220bbea0285a5d555320b00dde5ced378254c8be144d155d8f886ab4a4e9a855881", 
    },
},

} ```

- Zig
Published by r4gus almost 2 years ago

zbor -

```zig // build.zig.zon .{ .name = "your-project", .version = "0.1.0",

.dependencies = .{
    .zbor = .{
        .url = "https://github.com/r4gus/zbor/archive/refs/tags/0.12.2.tar.gz",
        .hash = "12206bbb8acbd91940b4e4d5cc2b3ea9c889de0f15b696cacb46c9208dcaa83bf8a6",
    },
},

} ```

- Zig
Published by r4gus about 2 years ago

zbor -

- Zig
Published by r4gus about 2 years ago

zbor -

This introduces breaking changes as the default behavior for stringify has slightly changed:

  • Enums will be serialized to their textual representation
  • u8 slices will be serialized to byte strings
  • For structs and unions:
    • null fields are skipped by default
    • fields of type std.mem.Allocator are always skipped.
    • the names of fields are serialized to text strings (you have to explicitly tell stringify to treat the name of a field as integer)

Also, stringify and parse now use the same Options.

- Zig
Published by r4gus about 2 years ago

zbor -

- Zig
Published by r4gus about 2 years ago

zbor -

- Zig
Published by r4gus about 2 years ago

zbor - 0.11.0

This release contains just a few minor tweaks with the most notable being that structs can now contain fields of type std.mem.Allocator.

Hash: 12204bf1073e9bc1eb12d09a2c298c687ed9c782c687f98ccda3bc95daad8c216845

```zon .{ .name = "your-project", .version = 0.0.1,

.dependencies = .{
    .zbor = .{
        .url = "https://github.com/r4gus/zbor/archive/refs/tags/0.11.0.tar.gz",
        .hash = "12204bf1073e9bc1eb12d09a2c298c687ed9c782c687f98ccda3bc95daad8c216845",
    }
},

} ```

- Zig
Published by r4gus over 2 years ago

zbor - 0.11.3-alpha

PACKAGE HASH: 1220e4d26c4707bb1b3883107b5f3a99866017136cd0b611ba30f9b04a967574fc7e

- Zig
Published by r4gus almost 3 years ago

zbor - 0.11.2-alpha

- Zig
Published by r4gus almost 3 years ago

zbor - 0.11.1-alpha

- Zig
Published by r4gus almost 3 years ago

zbor - 0.11.0-alpha

  • new Builder type for dynamically creating CBOR data
  • stringifycan be overridden by implementing cborStringify for structs and enums

- Zig
Published by r4gus almost 3 years ago

zbor - 0.10.5

New api: * No additional allocation of heap memory for inspecting DataItems * Json like parse() and stringify() functions for deserializing and serializing CBOR data

Note: If you encounter any errors please open an issue

- Zig
Published by r4gus about 3 years ago

zbor - 0.10.0

Changes:

  • All slices are now const, i.e. you can't manipulate certain data items (arrays, maps, ...) in place anymore.
  • Works with Zig version 0.10.0

- Zig
Published by r4gus about 3 years ago

zbor - 0.1.0

zbor is a CBOR encoder/ decoder library and command line tool written in Zig.

The library currently supports: * CBOR decoding * CBOR encoding * Serialization of DataItems to Json

Full support for deserializing Json into DataItems will be added later.

For examples on how to use the library see here.

If you encounter any bugs or other problems please open a issue.

- Zig
Published by r4gus over 3 years ago