BSD Ports

devel/yyjson 0.13.0 FreeBSD

Fastest JSON library in C

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
c23180c6e0
License
MIT
Categories
devel
Package size
126.9 KiB, 559.0 KiB installed

Description

A high performance JSON library written in ANSI C. Features: * Fast: can read or write gigabytes per second JSON data on modern CPUs. * Portable: complies with ANSI C (C89) for cross-platform compatibility. * Strict: complies with RFC 8259 JSON standard, ensuring strict number format and UTF-8 validation. * Extendable: offers options to allow comments, trailing commas, NaN/Inf, and custom memory allocator. * Accuracy: can accurately read and write int64, uint64, and double numbers. * Flexible: supports unlimited JSON nesting levels, \u0000 characters, and non null-terminated strings. * Manipulation: supports querying and modifying using JSON Pointer, JSON Patch and JSON Merge Patch. * Developer-Friendly: easy integration with only one h and one c file.

Limitations: * An array or object is stored as a data structure such as linked list, which makes accessing elements by index or key slower than using an iterator. * Duplicate keys are allowed in an object, and the order of the keys is preserved. * JSON parsing result is immutable, requiring a mutable copy for modification.

In the other systems

SystemPortVersion
FreeBSDdevel/yyjson0.13.0
OpenBSDdevel/yyjson0.12.0
NetBSDdevel/yyjson0.13.0
DragonFlydevel/yyjson0.10.0
MidnightBSDdevel/yyjson0.11.1

Install

Binary package:

pkg install yyjson

From the ports tree:

cd /usr/ports/devel/yyjson/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	yyjson>0:devel/yyjson
LIB_DEPENDS=	libyyjson.so:devel/yyjson

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.13.00.13.0-0.12.00.13.0
FreeBSD:14:quarterly0.13.00.13.0n/a0.11.10.13.0
FreeBSD:15:latest0.13.00.13.0n/a0.12.00.12.0
FreeBSD:15:quarterly0.13.00.13.0n/an/an/a
FreeBSD:16:latest0.13.00.13.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 15

Configuration

No options to configure.

USES
cmake:testing pathfix
Service scripts
none

Files

pkg-plist 7
  • include/yyjson.h
  • lib/cmake/yyjson/yyjson-config-.cmake
  • lib/cmake/yyjson/yyjson-config.cmake
  • lib/libyyjson.so
  • lib/libyyjson.so.0
  • lib/libyyjson.so.0.13.0
  • libdata/pkgconfig/yyjson.pc
distinfo 1
FileSizeSHA256
ibireme-yyjson-0.13.0_GH0.tar.gz1.641525e+0634e0f62a2bc11ab20d601e8ca1cc2b2079503aa45119a19133d89d19b94a0fae

Commit history 1

DateCommitCreditsLog message
c23180c6e0 Piotr Kubaj devel/yyjson: update to 0.13.0
Drop patch merged upstream in this release, add missing USE_LDCONFIG. Changelog: https://github.com/ibireme/yyjson/releases/tag/0.13.0