lib_tcstring

IAB TCF (v1, v2) TCString utilities


Keywords
string, decode, tcstring, tcf
License
Apache-2.0

Documentation

Crates.io license Crates.io version GitHub Workflow Status dependency status for latest release

IAB TCString library

A utility library to work with the IAB TCF v1 & v2 strings.

NOTE: This is not an official IAB library

NOTE: Currently only TCString decoding is implemented

Documentation

Please go to docs.rs/lib_tcstring

Changelog

For major (or breaking) version changes see CHANGELOG.md

Example

Cargo.toml

[dependencies]
lib_tcstring = "0.3.0"

Code

use std::convert::TryFrom;

let tc_model_v2 = lib_tcstring::TcModel::try_from("COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA");