Skip to content

Commit 60f4625

Browse files
committed
修改了说明
1 parent 9fdd1d3 commit 60f4625

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

README.md

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,3 @@
1-
# Slint Rust Template
1+
# 简单的时钟应用
22

3-
A template for a Rust application that's using [Slint](https://slint-ui.com) for the user interface.
4-
5-
## About
6-
7-
This template helps you get started developing a Rust application with Slint as toolkit
8-
for the user interface. It demonstrates the integration between the `.slint` UI markup and
9-
Rust code, how to trigger react to callbacks, get and set properties and use basic widgets.
10-
11-
## Usage
12-
13-
1. Install Rust by following the [Rust Getting Started Guide](https://www.rust-lang.org/learn/get-started).
14-
Once this is done, you should have the ```rustc``` compiler and the ```cargo``` build system installed in your path.
15-
2. Install [`cargo-generate`](https://github.com/cargo-generate/cargo-generate)
16-
```
17-
cargo install cargo-generate
18-
```
19-
3. Set up a sample project with this template
20-
```
21-
cargo generate --git https://github.com/slint-ui/slint-rust-template --name my-project
22-
cd my-project
23-
```
24-
3. Build with cargo
25-
```
26-
cargo build
27-
```
28-
4. Run the application binary
29-
```
30-
cargo run
31-
```
32-
33-
We recommend using an IDE for development, along with our [LSP-based IDE integration for `.slint` files](https://github.com/slint-ui/slint/blob/master/tools/lsp/README.md). You can also load this project directly in [Visual Studio Code](https://code.visualstudio.com) and install our [Slint extension](https://marketplace.visualstudio.com/items?itemName=Slint.slint).
34-
35-
## Next Steps
36-
37-
We hope that this template helps you get started and you enjoy exploring making user interfaces with Slint. To learn more
38-
about the Slint APIs and the `.slint` markup language check out our [online documentation](https://slint-ui.com/docs/rust/slint/).
3+
slint开发的简单桌面时钟例子。转载请说明作者。

0 commit comments

Comments
 (0)