blob: 5ae5e4c47a1aa1fbcd01d1bc7d4ca282821f9b03 [file] [log] [blame] [view]
Jens Geyerbd52f1a2014-07-28 01:25:30 +02001Thrift Haxe Software Library
2
3License
4=======
5
6Licensed to the Apache Software Foundation (ASF) under one
7or more contributor license agreements. See the NOTICE file
8distributed with this work for additional information
9regarding copyright ownership. The ASF licenses this file
10to you under the Apache License, Version 2.0 (the
11"License"); you may not use this file except in compliance
12with the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16Unless required by applicable law or agreed to in writing,
17software distributed under the License is distributed on an
18"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19KIND, either express or implied. See the License for the
20specific language governing permissions and limitations
21under the License.
22
23Using Thrift with Haxe
24========================
25
26Thrift requires Haxe 3.1.3.
27
Jens Geyerb029aa82014-11-15 23:54:16 +010028Thrift Haxe bindings can be set up via the `haxelib` tool from github.
29
30- To set up any **stable version**, choose the appropriate branch (e.g. `0.9.3`):
31
32 `haxelib git thrift https://github.com/apache/thrift.git 0.9.3 lib/haxe`
33
34- To set up the current **development version**, use the `master` branch:
35
36 `haxelib git thrift https://github.com/apache/thrift.git master lib/haxe`
37
38As usual, the installed library can be updated using `haxelib upgrade`
39or `haxelib update thrift`.
40
41In order to work with Thrift, you will need to install the Thrift compiler
42or build from source, depending on your operating system. Appropriate
43downloads and more information can be found at http://thrift.apache.org
44
Jens Geyerbd52f1a2014-07-28 01:25:30 +020045To get started, visit the /tutorial/haxe and /test/haxe dirs for examples.
Jens Geyerb029aa82014-11-15 23:54:16 +010046If you are using HIDE or the FlashDevelop IDE, you'll find appropriate
47project files in these folders.
Jens Geyerbd52f1a2014-07-28 01:25:30 +020048
49
50Current status
51========================
52- tested with Haxe C++ target
Jens Geyerfea00ac2014-10-01 02:22:48 +020053- transports: Socket, HTTP (client only), Stream
Jens Geyerb029aa82014-11-15 23:54:16 +010054- protocols: Binary, JSON, Multiplex
Jens Geyerbd52f1a2014-07-28 01:25:30 +020055- tutorial client and server available
56- cross-test client and server available
57
58
59Further developments
60========================
Jens Geyerbd52f1a2014-07-28 01:25:30 +020061- improve to work with C#, Java and JavaScript Haxe/OpenFL targets
62- improve to work with more (ideally all) Haxe/OpenFL targets
Jens Geyerfea00ac2014-10-01 02:22:48 +020063- add HTTP server, update tutorial and tests accordingly
Jens Geyerbd52f1a2014-07-28 01:25:30 +020064
65
66Dependencies
67========================
68
69Haxe Targets:
70Depending on the desired targets, you may have to install the appropriate HaxeLibs
71after installing Haxe itself. For example, if you plan to target C#, Java and C++,
72enter the following commands after installing Haxe:
73
Jens Geyerfea00ac2014-10-01 02:22:48 +020074 haxelib install hxcpp
75 haxelib install hxjava
76 haxelib install hxcs
Jens Geyerbd52f1a2014-07-28 01:25:30 +020077
78For other targets, please consult the Haxe documentation whether or not any additional
79target libraries need to be installed and how to achieve this.
80
81Haxe Libraries:
82- None (at the time of writing)
83
84
85Known restrictions
86========================
87
88Although designed with maximum portability in mind, for technical reasons some platforms
89may only support parts of the library, or not be compatible at all.
90
91Javascript:
92- tutorial fails to build because of unsupported Sys.args
93