mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
Adds a Rust SDK for performing seed related cryptograhic operations. It depends on internal portions of our Rust SDK. Primarily parts of the bitwarden-crypto crate.
42 lines
1.5 KiB
XML
42 lines
1.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<RootNamespace>Bit.RustSDK</RootNamespace>
|
|
<UserSecretsId>Bit.RustSDK</UserSecretsId>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="rust/target/release/libsdk*.dylib">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
<PackageCopyToOutput>true</PackageCopyToOutput>
|
|
<Link>runtimes/osx-arm64/native/libsdk.dylib</Link>
|
|
</Content>
|
|
<Content Include="./rust/target/release/libsdk*.so">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
<PackageCopyToOutput>true</PackageCopyToOutput>
|
|
<Link>runtimes/linux-x64/native/libsdk.dylib</Link>
|
|
</Content>
|
|
<Content Include="./rust/target/release/libsdk*.dll">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
<PackageCopyToOutput>true</PackageCopyToOutput>
|
|
<Link>runtimes/windows-x64/native/libsdk.dylib</Link>
|
|
</Content>
|
|
|
|
<!-- This is a work around because this file is compiled by the PreBuild event below, and won't
|
|
always be detected -->
|
|
<Compile Remove="NativeMethods.g.cs" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
|
<Exec Command="cargo build --release" WorkingDirectory="$(ProjectDir)/rust" />
|
|
<ItemGroup>
|
|
<Compile Include="NativeMethods.g.cs" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project>
|