Skip to main content
Version: 1.0.0

Install

Apache Fory™ releases are available both as source artifacts and language-specific packages.

For source downloads, see the Apache Fory™ download page.

Java

Use Maven to add Apache Fory™:

<dependency>
<groupId>org.apache.fory</groupId>
<artifactId>fory-core</artifactId>
<version>1.0.0</version>
</dependency>
<!-- Optional row format support -->
<!--
<dependency>
<groupId>org.apache.fory</groupId>
<artifactId>fory-format</artifactId>
<version>1.0.0</version>
</dependency>
-->
<!-- SIMD acceleration for array compression (Java 16+) -->
<!--
<dependency>
<groupId>org.apache.fory</groupId>
<artifactId>fory-simd</artifactId>
<version>1.0.0</version>
</dependency>
-->

Scala

Scala 2.13 with Maven:

<dependency>
<groupId>org.apache.fory</groupId>
<artifactId>fory-scala_2.13</artifactId>
<version>1.0.0</version>
</dependency>

Scala 3 with Maven:

<dependency>
<groupId>org.apache.fory</groupId>
<artifactId>fory-scala_3</artifactId>
<version>1.0.0</version>
</dependency>

Scala 2.13 with sbt:

libraryDependencies += "org.apache.fory" % "fory-scala_2.13" % "1.0.0"

Scala 3 with sbt:

libraryDependencies += "org.apache.fory" % "fory-scala_3" % "1.0.0"

Kotlin

Add Apache Fory™ Kotlin with Maven:

<dependency>
<groupId>org.apache.fory</groupId>
<artifactId>fory-kotlin</artifactId>
<version>1.0.0</version>
</dependency>

Python

python -m pip install --upgrade pip
pip install pyfory==1.0.0

Go

Use the full Go module path github.com/apache/fory/go/fory:

go get github.com/apache/fory/go/fory@v1.0.0

If your Go proxy has not picked up the new submodule tag yet, retry later or use GOPROXY=direct temporarily.

Rust

[dependencies]
fory = "1.0.0"

Or use cargo add:

cargo add fory@1.0.0

JavaScript / TypeScript

Install the published JavaScript package from npm:

npm install @apache-fory/core

Optional native acceleration requires Node.js 20+:

npm install @apache-fory/hps

Dart

Add Apache Fory™ Dart to pubspec.yaml:

dependencies:
fory: ^1.0.0

dev_dependencies:
build_runner: ^2.4.13

Generate serializers after defining annotated types:

dart run build_runner build --delete-conflicting-outputs

C#

Install the Apache.Fory NuGet package. It includes both the runtime and the source generator for [ForyObject] types.

dotnet add package Apache.Fory --version 1.0.0
<ItemGroup>
<PackageReference Include="Apache.Fory" Version="1.0.0" />
</ItemGroup>

Swift

Add Apache Fory™ from the GitHub repository with Swift Package Manager:

dependencies: [
.package(url: "https://github.com/apache/fory.git", exact: "1.0.0")
],
targets: [
.target(
name: "MyApp",
dependencies: [
.product(name: "Fory", package: "fory")
]
)
]