Change the homepage URL in the Rust API's Cargo.toml

This commit is contained in:
Olivier Goffart 2023-02-17 18:13:15 +01:00 committed by Olivier Goffart
parent b61877e3a0
commit f231522f7e
8 changed files with 13 additions and 10 deletions

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "GPL-3.0-only OR LicenseRef-Slint-commercial"
description = "Helper for Slint build script"
repository = "https://github.com/slint-ui/slint"
homepage = "https://slint-ui.com"
homepage = "https://slint.rs"
rust-version.workspace = true
[lib]

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "GPL-3.0-only OR LicenseRef-Slint-commercial"
description = "Macro helper for slint crate"
repository = "https://github.com/slint-ui/slint"
homepage = "https://slint-ui.com"
homepage = "https://slint.rs"
[lib]

View file

@ -1,4 +1,4 @@
**NOTE**: This library is an **internal** crate for the [Slint project](https://slint-ui.com).
**NOTE**: This library is an **internal** crate for the [Slint project](https://slint.rs).
This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead.

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "GPL-3.0-only OR LicenseRef-Slint-commercial"
description = "GUI toolkit to efficiently develop fluid graphical user interfaces for embedded devices and desktop applications"
repository = "https://github.com/slint-ui/slint"
homepage = "https://slint-ui.com"
homepage = "https://slint.rs"
categories = ["gui", "rendering::engine"]
keywords = ["gui", "toolkit", "graphics", "design", "ui"]
rust-version.workspace = true

View file

@ -5,10 +5,10 @@
# A Rust UI toolkit
[Slint](https://slint-ui.com/) is a UI toolkit that supports different programming languages.
Slint is the Rust API to interact with a Slint UI design from Rust.
[Slint](https://slint.rs) is a Rust based UI toolkit to build native user interfaces on desktop platforms and for embedded devices.
This crate provides the Rust APIs to interact with the user interface implemented in Slint.
The complete Rust documentation can be viewed online at https://slint-ui.com/docs/rust/slint/.
The complete Rust documentation for Slint can be viewed online at https://slint.rs/docs/rust/slint/.
## Getting Started

View file

@ -7,7 +7,7 @@
# Slint
This crate is the main entry point for embedding user interfaces designed with
[Slint UI](https://slint-ui.com/) in Rust programs.
[Slint](https://slint.rs/) in Rust programs.
*/
#![doc = concat!("If you are new to Slint, start with the [Walk-through tutorial](https://slint-ui.com/releases/", env!("CARGO_PKG_VERSION"), "/tutorial/rust)")]
/*! If you are already familiar with Slint, the following topics provide related information.

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "GPL-3.0-only OR LicenseRef-Slint-commercial"
description = "Interpreter library for Slint"
repository = "https://github.com/slint-ui/slint"
homepage = "https://slint-ui.com"
homepage = "https://slint.rs"
categories = ["gui", "rendering::engine"]
keywords = ["gui", "toolkit", "graphics", "design", "ui"]
rust-version.workspace = true

View file

@ -367,6 +367,7 @@ const EXPECTED_HEADER: LicenseHeader<'static> =
LicenseHeader(&["Copyright © SixtyFPS GmbH <info@slint-ui.com>", EXPECTED_SPDX_ID]);
const EXPECTED_HOMEPAGE: &str = "https://slint-ui.com";
const ALLOWED_HOMEPAGE: &str = "https://slint.rs";
const EXPECTED_REPOSITORY: &str = "https://github.com/slint-ui/slint";
fn collect_files() -> Result<Vec<PathBuf>> {
@ -595,7 +596,9 @@ impl LicenseHeaderCheck {
return Ok(());
}
doc.check_and_fix_package_string_field(self.fix_it, "homepage", EXPECTED_HOMEPAGE)?;
if doc.check_and_fix_package_string_field(false, "homepage", ALLOWED_HOMEPAGE).is_err() {
doc.check_and_fix_package_string_field(self.fix_it, "homepage", EXPECTED_HOMEPAGE)?;
}
doc.check_and_fix_package_string_field(self.fix_it, "repository", EXPECTED_REPOSITORY)?;
if doc.package()?["description"].is_none() {