winmd 0.2.0-dev.2 copy "winmd: ^0.2.0-dev.2" to clipboard
winmd: ^0.2.0-dev.2 copied to clipboard

outdated

A Dart library for working with Windows Metadata (winmd) formats.

This package is used for interrogating WinMD files and building Dart FFI interop libraries from the results.

Usage #

A simple example:

import 'package:winmd/winmd.dart';

final type = 'Windows.Foundation.IAsyncInfo';
final mdTypeDef = WinmdStore.getMetadataForType(type);
final projection = TypeBuilder.projectWinMdType(mdTypeDef);
final dartClass = TypePrinter.printType(projection);

final outputFilename = type.split('.').last;
final outputFile =
    File('${outputDirectory.uri.toFilePath()}$outputFilename.dart');

print('Writing:    ${outputFile.path}');
outputFile.writeAsStringSync(dartClass);

Features and bugs #

Please file feature requests and bugs at the issue tracker.

9
likes
0
pub points
53%
popularity

Publisher

verified publisherhalildurmus.dev

A Dart library for working with Windows Metadata (winmd) formats.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, win32

More

Packages that depend on winmd