blob: 82525d4df65c76dfa79455c934f0a93a4c5eaadf [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
28To get started, visit the /tutorial/haxe and /test/haxe dirs for examples.
29If you are using HIDE, you'll find the HIDE project files in these folders.
30
31
32Current status
33========================
34- tested with Haxe C++ target
Jens Geyerfea00ac2014-10-01 02:22:48 +020035- transports: Socket, HTTP (client only), Stream
36- protocols: Binary, JSON
Jens Geyerbd52f1a2014-07-28 01:25:30 +020037- tutorial client and server available
38- cross-test client and server available
39
40
41Further developments
42========================
Jens Geyerbd52f1a2014-07-28 01:25:30 +020043- improve to work with C#, Java and JavaScript Haxe/OpenFL targets
44- improve to work with more (ideally all) Haxe/OpenFL targets
Jens Geyerfea00ac2014-10-01 02:22:48 +020045- add HTTP server, update tutorial and tests accordingly
Jens Geyerbd52f1a2014-07-28 01:25:30 +020046
47
48Dependencies
49========================
50
51Haxe Targets:
52Depending on the desired targets, you may have to install the appropriate HaxeLibs
53after installing Haxe itself. For example, if you plan to target C#, Java and C++,
54enter the following commands after installing Haxe:
55
Jens Geyerfea00ac2014-10-01 02:22:48 +020056 haxelib install hxcpp
57 haxelib install hxjava
58 haxelib install hxcs
Jens Geyerbd52f1a2014-07-28 01:25:30 +020059
60For other targets, please consult the Haxe documentation whether or not any additional
61target libraries need to be installed and how to achieve this.
62
63Haxe Libraries:
64- None (at the time of writing)
65
66
67Known restrictions
68========================
69
70Although designed with maximum portability in mind, for technical reasons some platforms
71may only support parts of the library, or not be compatible at all.
72
73Javascript:
74- tutorial fails to build because of unsupported Sys.args
75