Dart Setup
Fory Dart is published on pub.dev and requires Dart SDK 3.7 or later. Generated serializers use build_runner. Keep Fory packages and generated code in one application on compatible versions.
Verify the Toolchain
dart --version
dart pub --help
Choose a Capability
| Capability | Package or tool | Continue with |
|---|---|---|
| Object Serialization | fory plus build_runner | Dart object serialization and xlang |
| Schema and generated models | fory-compiler | Fory IDL and Compiler |
| Fory gRPC | generated companions plus package:grpc | Dart gRPC |
Each capability guide owns its exact pubspec.yaml, generation command, and first runnable example.