Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api/dotnet: Add internal Slint Runtime Library for .NET API #3913

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[workspace]
members = [
'api/cpp',
'api/dotnet',
'api/node',
'api/rs/build',
'api/rs/macros',
Expand Down
32 changes: 32 additions & 0 deletions api/dotnet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright © SixtyFPS GmbH <[email protected]>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial

[package]
name = "slint-dotnet"
description = "Internal Slint Runtime Library for .NET API."
authors.workspace = true
documentation.workspace = true
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
categories = ["gui", "development-tools"]
build = "build.rs"

[lib]
path = "src/lib.rs"
crate-type = ["lib", "cdylib", "staticlib"]

[dependencies]
async-std = { version = "1.10.0" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also use the more lightweight spin-on crate for this (block_on). We use that in other places as well.

rnet = { version = "0.3.1" }
linkme = "0.2.7"

i-slint-compiler = { workspace = true, features = ["default"] }
i-slint-core = { workspace = true, features = ["default"] }
i-slint-backend-selector = { workspace = true, features = ["backend-winit", "backend-winit-x11", "backend-winit-wayland", "backend-linuxkms", "renderer-skia-opengl", "renderer-skia", "renderer-software"] }
# we do not need qt
slint-interpreter = { workspace = true, features = ["display-diagnostics", "compat-1-2", "internal"] }
4 changes: 4 additions & 0 deletions api/dotnet/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright © SixtyFPS GmbH <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial

fn main() {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to have a build.rs file if it doesn't do anything. (just need to be removed from Cargo.toml as well