solana_borsh 0.0.1 solana_borsh: ^0.0.1 copied to clipboard
Dart implementation of the Borsh serialization specification.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add solana_borsh
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
solana_borsh: ^0.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:solana_borsh/annotations.dart';
import 'package:solana_borsh/borsh.dart';
import 'package:solana_borsh/codecs.dart';
import 'package:solana_borsh/converters.dart';
import 'package:solana_borsh/exceptions.dart';
import 'package:solana_borsh/mixins.dart';
import 'package:solana_borsh/models.dart';
import 'package:solana_borsh/types.dart';