Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
b4b9ed35
Commit
b4b9ed35
authored
Jun 26, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make complier package releasable.
parent
79bbedc2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
10 deletions
+66
-10
README.txt
c++/README.txt
+17
-4
LICENSE.txt
compiler/LICENSE.txt
+2
-0
README.txt
compiler/README.txt
+20
-0
capnproto-compiler.cabal
compiler/capnproto-compiler.cabal
+24
-2
Main.hs
compiler/src/Main.hs
+3
-4
No files found.
c++/README.txt
View file @
b4b9ed35
...
...
@@ -2,13 +2,26 @@ Cap'n Proto - Insanely Fast Data Serialization Format
Copyright 2013 Kenton Varda
http://kentonv.github.com/capnproto/
This package contains the C++ runtime implementation of Cap'n Proto.
Cap'n Proto is an insanely fast data interchange format and capability-based
RPC system. Think JSON, except binary. Or think of Google's Protocol Buffers
(http://protobuf.googlecode.com), except faster. In fact, in benchmarks,
Cap'n Proto is INFINITY TIMES faster than Protocol Buffers.
Full installation instructions and other documentation are maintained on the
Cap'n Proto web site:
This package contains the C++ runtime implementation of Cap'n Proto. To build
and use it, you will first need to install the Cap'n Proto compiler, capnpc,
which comes in a separate package.
Full installation and usage instructions and other documentation are maintained
on the Cap'n Proto web site:
http://kentonv.github.io/capnproto/install.html
To build and install (from a release package), simply do:
./configure
make -j4 check
sudo make install
The -j4 allows the build to use up to four processor cores instead of one.
You can increase this number if you have more cores. Specifying "check"
says to run tests in addition to building. This can be omitted to make the
build slightly faster, but running tests and reporting failures back to the
developers helps us out!
compiler/LICENSE.txt
0 → 120000
View file @
b4b9ed35
../LICENSE
\ No newline at end of file
compiler/README.txt
0 → 100644
View file @
b4b9ed35
Cap'n Proto - Insanely Fast Data Serialization Format
Copyright 2013 Kenton Varda
http://kentonv.github.com/capnproto/
Cap'n Proto is an insanely fast data interchange format and capability-based
RPC system. Think JSON, except binary. Or think of Google's Protocol Buffers
(http://protobuf.googlecode.com), except faster. In fact, in benchmarks,
Cap'n Proto is INFINITY TIMES faster than Protocol Buffers.
This package is the executable tool which parses Cap'n Proto schema definitions
and generates corresponding source code in various target languages. To be
useful, you will also need to obtain a runtime library for your target
language. These are distributed separately.
Full installation and usage instructions and other documentation are maintained
on the Cap'n Proto web site:
http://kentonv.github.io/capnproto/install.html
To build and install, simply do:
cabal install capnproto-compiler.cabal
compiler/capnproto-compiler.cabal
View file @
b4b9ed35
name: capnproto-compiler
version: 0.1
version: 0.1
-dev
cabal-version: >=1.2
build-type: Simple
author: kenton
author: Kenton Varda <temporal@gmail.com>
maintainer: capnproto@googlegroups.com
homepage: http://kentonv.github.io/capnproto/
-- actually BSD2, but that's not on the list for some reason
license: BSD3
license-file: LICENSE.txt
synopsis: Schema parser and code generator for Cap'n Proto serialization/RPC system.
category: Data
description:
Cap’n Proto is an insanely fast data interchange format and capability-based RPC system. Think
JSON, except binary. Or think Protocol Buffers, except faster. In fact, in benchmarks, Cap’n
Proto is INFINITY TIMES faster than Protocol Buffers.
This package is the executable tool which parses Cap'n Proto schema definitions and generates
corresponding source code in various target languages. To be useful, you will also need to
obtain a runtime library for your target language. These are distributed separately.
See the web site for full documentation: http://kentonv.github.io/capnproto/
-- How to get stack traces:
-- 1. Compile normally and do not clean.
...
...
@@ -11,6 +28,11 @@ author: kenton
-- this file. --enable-executable-profiling alone doesn't appear to get the job done.)
-- 3. Run with +RTS -xc -RTS on the command line.
extra-source-files:
README.txt,
src/c++-source.mustache,
src/c++-header.mustache
executable capnpc
hs-source-dirs: src
main-is: Main.hs
...
...
compiler/src/Main.hs
View file @
b4b9ed35
...
...
@@ -51,10 +51,9 @@ import Data.Maybe(fromMaybe, catMaybes, mapMaybe)
import
Data.Function
(
on
)
import
Semantics
import
WireFormat
(
encodeSchema
)
import
CxxGenerator
(
generateCxx
)
version
=
"Cap'n Proto Compiler 0.1-dev (from git)"
import
Paths_capnproto_compiler
import
Data.Version
(
showVersion
)
type
GeneratorFn
=
[
FileDesc
]
->
[
Word8
]
->
Map
.
Map
Word64
[
Word8
]
->
IO
[(
FilePath
,
LZ
.
ByteString
)]
...
...
@@ -112,7 +111,7 @@ main = do
let
isVersion
=
not
$
null
[
opt
|
opt
@
VersionOpt
<-
options
]
when
isVersion
(
do
putStr
(
version
++
"
\n
"
)
putStr
(
"Cap'n Proto Compiler "
++
showVersion
Paths_capnproto_compiler
.
version
++
"
\n
"
)
exitSuccess
)
let
isGenId
=
not
$
null
[
opt
|
opt
@
GenIdOpt
<-
options
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment