Wickra.Synth 0.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Wickra.Synth --version 0.1.2
                    
NuGet\Install-Package Wickra.Synth -Version 0.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Wickra.Synth" Version="0.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Wickra.Synth" Version="0.1.2" />
                    
Directory.Packages.props
<PackageReference Include="Wickra.Synth" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Wickra.Synth --version 0.1.2
                    
#r "nuget: Wickra.Synth, 0.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Wickra.Synth@0.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Wickra.Synth&version=0.1.2
                    
Install as a Cake Addin
#tool nuget:?package=Wickra.Synth&version=0.1.2
                    
Install as a Cake Tool

Wickra Synth — C#

.NET bindings for the Wickra synthetic-microstructure generator over its C ABI hub. A Synth is built from a spec JSON and driven over a JSON boundary, so the result is byte-identical to every other Wickra Synth binding.

Install

dotnet add package Wickra.Synth

The package ships the native C ABI library per runtime identifier under runtimes/<rid>/native/. For a local build, cargo build -p wickra-synth-c --release places the library in target/release/; the bundled DllImportResolver probes the Cargo target/ tree, so tests and apps in the repo find it without extra steps.

Usage

using Wickra.Synth;

const string spec = """
{"seed":42,"bars":20,"start_price":100.0,
 "regimes":[{"kind":"trend","len":20,"drift":0.002,"vol":0.01}],
 "microstructure":{"book_depth":5,"spread_bps":4.0,"trade_rate":8.0}}
""";

using var synth = new Synth(spec);

string response = synth.Command("""{"cmd":"generate"}""");
Console.WriteLine(response);

Surface

  • new Synth(string specJson) — build a synth from a spec JSON. Throws ArgumentException if the spec is invalid. Implements IDisposable; dispose it when done.
  • string Command(string cmdJson) — apply a command envelope ({"cmd":"...", ...}) and return the response JSON. Commands: set_spec, generate, generate_stream, version.
  • static string Version() — the crate version.

Domain errors (a bad command, an unknown command name) come back as an {"ok": false, "error": ...} response, not as an exception. Exceptions are reserved for an invalid spec at construction and hard failures at the C ABI boundary.

Determinism

The response bytes are identical across languages for a given seed, because the whole generator lives once in the Rust core and this binding forwards its JSON verbatim.

See also

License

Dual-licensed under either MIT or Apache-2.0, at your option.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 72 10/5/2026
0.1.4 97 9/23/2026
0.1.3 102 9/18/2026
0.1.2 121 9/13/2026
0.1.1 127 9/6/2026
0.1.0 125 9/6/2026