Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

cometsh/elixir-car

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAR

Warning

This package has been succeeded by the :dasl library. https://github.com/cometsh/elixir-dasl

An Elixir package for dealing with CARv1 (content archive) files.

Currently only just a basic decoder for use in Comet, but hopefully to become a fully fledged CAR library for all sorts of uses (eventually).

TODO

  • Encoding CAR files
  • Support for more codecs specified in a block's CID (e.g. DAG-PB, RAW). Currently only DAG-CBOR is supported and automatically.
  • Tests

Installation

Add car to your mix.exs

def deps do
  [
    {:car, "~> 0.1.0"}
  ]
end

Basic Usage

car_binary = receive_car()
{:ok, decoded_car} = CAR.decode(car_binary)

License

This project is licensed under the MIT License

About

Elixir CAR (content archive) file support

Topics

Resources

License

Stars

Watchers

Forks

Contributors