Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Library for describing binary formats for Scala types
branch: master

Merge pull request #15 from huitseeker/bump-sbt

Bump sbt version to 0.13.5
latest commit 2b12a90515
@jsuereth jsuereth authored
Failed to load latest commit information.
core Amending arbitraryEnumeration in tests
examples/bt updated README to mention example and link to introduction
project Bump sbt version to 0.13.5
.gitattributes git line endings configuration
.gitignore 2.10.0-M6
.travis.yml Initial travis CI file for PR validaiton.
README updated README to mention example and link to introduction


SBinary is a library for describing binary protocols, in the form of mappings between Scala types and binary formats. It can be used as a robust serialization mechanism for Scala objects or a way of dealing with existing binary formats found in the wild.

It started out life as a loose port of Haskell's Data.Binary. It's since evolved a bit from there to take advantage of the features Scala implicits offer over Haskell type classes, but the core idea has remained the same.

SBinary was written by David MacIver.  You can find his introduction here:

= Getting SBinary =

SBinary is in the Scala Tools Repository.  If you are using sbt with Scala 2.7.7:
  val sbinary = "org.scala-tools.sbinary" %% "sbinary" % "0.3"

For Maven users, use "sbinary_2.7.7" for the artifact ID.

= Build instructions =

SBinary uses sbt to build.  Get sbt at

To build and run the example:
sbt update publish-local 'project Binary Tree Example' run

This will retrieve dependencies and compile, package, and publish SBinary to your ~/.ivy2/local repository.   If you just want to use the jar directly, it is in the `target/` directory.

You can find the source for the example is in the examples/bt/ directory.
Something went wrong with that request. Please try again.