Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Thrift parser/generator
Scala Java Thrift Shell Python

birdcage: Upgrade scopt 2 to 3.

Related: #143

RB_ID=499725
TBR=true
latest commit 2c95bd9537
Nik Shkrob nshkrob authored jenkins@bigbird committed
Failed to load latest commit information.
bin [split] scrooge: Cache parsed documents for performance.
demos/scrooge-maven-demo/src Kill maven, kill it with fire
doc/src/sphinx scrooge [trivial doc changes]: Add missing ending single quote in com…
project birdcage: Upgrade scopt 2 to 3.
scrooge-benchmark/src Remove more poms
scrooge-core Remove more poms
scrooge-generator birdcage: Upgrade scopt 2 to 3.
scrooge-linter birdcage: Upgrade scopt 2 to 3.
scrooge-maven-plugin [split] bump scrooge to 3.17.1-SNAPSHOT
scrooge-ostrich use DefaultTracer in OstrichThriftServer
scrooge-runtime Remove more poms
scrooge-sbt-plugin [split] improve SocialGraphUtil exception logging
scrooge-serializer Remove more poms
.gitignore [split] scrooge: Cache mustache resources to improve generation perfo…
.travis.yml [split] scrooge: Remove SafeVarargs for JDK 6 compatibility.
CHANGES [split] bump scrooge to 3.17.1-SNAPSHOT
CONFIG.ini [split] improve SocialGraphUtil exception logging
GROUPS [split] improve SocialGraphUtil exception logging
LICENSE [split] improve SocialGraphUtil exception logging
OWNERS [split] Address or suppress warnings.
README.md [split] improve SocialGraphUtil exception logging
pushsite.bash [split] improve SocialGraphUtil exception logging
sbt [split] scrooge: Fix travis build.

README.md

Scrooge

Build Status

Scrooge is a thrift code generator written in Scala, which currently generates code for Scala and Java.

It's meant to be a replacement for the apache thrift code generator, and generates conforming, compatible binary codecs by building on top of libthrift.

Since Scala is API-compatible with Java, you can use the apache thrift code generator to generate Java files and use them from within Scala, but the generated code uses Java collections and mutable "bean" classes, causing some annoying boilerplate conversions to be hand-written. This is an attempt to bypass the problem by generating Scala code directly. It also uses Scala syntax so the generated code is much more compact.

There is a fairly comprehensive set of unit tests, which actually generate code, compile it, and execute it to verify expectations.

Quick-start

There are a couple of classes needed by the generated code. These have been moved out of scrooge into a separate jar to keep dependencies small. Maven users need to add the following to the pom.xml file:

<dependency>
  <groupId>com.twitter</groupId>
  <artifactId>scrooge-core_2.9.2</artifactId>
  <version>3.3.2</version>
</dependency>

SBT users need this:

val scroogeCore = "com.twitter" %% "scrooge-core" % "3.3.2"

Full Documentation

https://twitter.github.io/scrooge/

Something went wrong with that request. Please try again.