Skip to content
This repository was archived by the owner on Apr 16, 2023. It is now read-only.

Commit 143f8c0

Browse files
authored
Merge pull request #6 from CodeDead/release/v0.1.1
Release/v0.1.1
2 parents 07e1b8f + cc70870 commit 143f8c0

File tree

9 files changed

+177
-112
lines changed

9 files changed

+177
-112
lines changed

.github/workflows/rust.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@ name: Deploy
33
on:
44
release:
55
types: [ published ]
6-
push:
7-
branches:
8-
- master
96

107
jobs:
118
build:
129
runs-on: ubuntu-latest
1310

1411
steps:
1512
- name: Checkout
16-
uses: actions/checkout@v1
13+
uses: actions/checkout@v3
1714

1815
- name: Install latest rust toolchain
1916
uses: actions-rs/toolchain@v1
@@ -39,7 +36,7 @@ jobs:
3936

4037
steps:
4138
- name: Checkout
42-
uses: actions/checkout@v1
39+
uses: actions/checkout@v3
4340

4441
- name: Install latest rust toolchain
4542
uses: actions-rs/toolchain@v1
@@ -64,7 +61,7 @@ jobs:
6461

6562
steps:
6663
- name: Checkout
67-
uses: actions/checkout@v1
64+
uses: actions/checkout@v3
6865

6966
- name: Install latest rust toolchain
7067
uses: actions-rs/toolchain@v1

.github/workflows/test.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
push:
7+
branches:
8+
- master
9+
- development
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Install latest rust toolchain
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
toolchain: stable
23+
default: true
24+
override: true
25+
26+
- name: Check code formatting
27+
run: cargo fmt --all -- --check
28+
29+
- name: Test code
30+
run: cargo test --verbose --all

Cargo.lock

+2-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
[package]
22
name = "text-diff"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
authors = ["CodeDead <[email protected]>"]
66
description = "A cross-platform GUI for comparing two text files"
77
readme = "README.md"
88
repository = "https://github.com/CodeDead/text-diff-rs"
9+
license = "GPL-3.0"
910
license-file = "LICENSE"
1011
keywords = ["gui", "ui", "text-diff", "interface", "codedead", "diff", "difference"]
1112

1213
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1314

1415
[dependencies]
1516
iced = { git = "https://github.com/iced-rs/iced" }
16-
native-dialog = "0.6.3"
17-
serde = { version = "1.0", features = ["derive"] }
17+
native-dialog = { git = "https://github.com/CodeDead/native-dialog-rs" }
18+
serde = { version = "1.0" }
1819
serde_json = "1.0"
1920

2021
[profile.release]

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
![GitHub](https://img.shields.io/badge/language-Rust-green)
55
![GitHub](https://img.shields.io/github/license/CodeDead/text-diff-rs)
66
[![Deploy](https://github.com/CodeDead/text-diff-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/CodeDead/text-diff-rs/actions/workflows/rust.yml)
7+
[![Test](https://github.com/CodeDead/text-diff-rs/actions/workflows/test.yml/badge.svg)](https://github.com/CodeDead/text-diff-rs/actions/workflows/test.yml)
78

89
![text-diff](https://i.imgur.com/VrcSyMD.png)
910

File renamed without changes.

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use iced::window;
22
use iced::{Sandbox, Settings};
33

4-
mod filereader;
4+
mod file_reader;
55
mod style;
66
mod vector_comparer;
77
mod vector_exporter;
@@ -11,7 +11,7 @@ pub fn main() -> iced::Result {
1111
view::ApplicationContext::run(Settings {
1212
id: Some(String::from("text-diff")),
1313
window: window::Settings {
14-
size: (800, 800),
14+
size: (800, 720),
1515
position: window::Position::Centered,
1616
..window::Settings::default()
1717
},

src/style.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ mod dark {
383383
a: 0.8,
384384
..if is_checked { ACTIVE } else { SURFACE }
385385
}
386-
.into(),
386+
.into(),
387387
..self.active(is_checked)
388388
}
389389
}

0 commit comments

Comments
 (0)