forked from Smithay/smithay-clipboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The main highlight is the move to calloop to handle all the requests which makes it possible to remove all the active polling and clean the data reading/writing, as well as accepting arbitrary long payloads. This update also fixes the CI for the repository by moving it to github actions, sets the minimum rust version, and edition to 2021. Fixes Smithay#46. Fixes Smithay#44. Fixes Smithay#34.
- Loading branch information
Showing
17 changed files
with
828 additions
and
931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Cdebuginfo=0 --deny=warnings" | ||
RUSTDOCFLAGS: "--deny=warnings" | ||
|
||
jobs: | ||
fmt: | ||
name: Check Formatting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
rust-version: nightly | ||
components: rustfmt | ||
- name: Check Formatting | ||
run: cargo +nightly fmt --all -- --check | ||
|
||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust_version: ["1.65", stable, nightly] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
rust-version: ${{ matrix.rust_version }} | ||
|
||
- name: Check documentation | ||
run: cargo doc --features=log --no-deps --document-private-items | ||
|
||
- name: Run tests | ||
run: cargo test --verbose --features=log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Deploy Docs to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
doc: | ||
name: Documentation on Github Pages | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cargo cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo | ||
key: cargo-stable | ||
|
||
- name: Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Install system dependencies | ||
run: sudo apt-get install libxkbcommon-dev libwayland-dev | ||
|
||
- name: Build Documentation | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
args: --no-deps | ||
|
||
- name: Setup index | ||
run: cp ./doc_index.html ./target/doc/index.html | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./target/doc |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
[package] | ||
name = "smithay-clipboard" | ||
version = "0.6.6" | ||
authors = ["Kirill Chibisov <[email protected]>", "Victor Berger <[email protected]>", "Lucas Timmins <[email protected]>"] | ||
authors = ["Kirill Chibisov <[email protected]>", "Victor Berger <[email protected]>"] | ||
edition = "2021" | ||
description = "Provides access to the wayland clipboard for client applications." | ||
repository = "https://github.com/smithay/smithay-clipboard" | ||
documentation = "https://smithay.github.io/smithay-clipboard" | ||
license = "MIT" | ||
keywords = ["clipboard", "wayland"] | ||
rust-version = "1.65.0" | ||
|
||
[dependencies] | ||
sctk = { package = "smithay-client-toolkit", path = "../client-toolkit", default-features = false } | ||
libc = "0.2.149" | ||
sctk = { package = "smithay-client-toolkit", git = "https://github.com/kchibisov/client-toolkit", branch = "improve-selection", default-features = false, features = ["calloop"] } | ||
wayland-backend = { version = "0.3.0", default_features = false, features = ["client_system"] } | ||
|
||
[dev-dependencies] | ||
sctk = { package = "smithay-client-toolkit", path = "../client-toolkit", default-features = false, features = ["calloop", "xkbcommon"] } | ||
sctk = { package = "smithay-client-toolkit", git = "https://github.com/kchibisov/client-toolkit", branch = "improve-selection", default-features = false, features = ["calloop", "xkbcommon"] } | ||
|
||
# [features] | ||
# default = ["dlopen"] | ||
# dlopen = ["wayland-backend/dlopen" ] | ||
[features] | ||
default = ["dlopen"] | ||
dlopen = ["wayland-backend/dlopen" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
use_small_heuristics = "Max" | ||
format_code_in_doc_comments = true | ||
match_block_trailing_comma = true | ||
condense_wildcard_suffixes = true | ||
use_field_init_shorthand = true | ||
normalize_doc_attributes = true | ||
overflow_delimited_expr = true | ||
imports_granularity = "Module" | ||
use_small_heuristics = "Max" | ||
normalize_comments = true | ||
reorder_impl_items = true | ||
use_try_shorthand = true | ||
newline_style = "Unix" | ||
edition = "2018" | ||
format_strings = true | ||
wrap_comments = true | ||
comment_width = 80 | ||
edition = "2021" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.