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

[WIP] wayland-rs-0.20.0 #165

Merged
merged 60 commits into from
Apr 20, 2018
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
2b1c5db
Prepare rewrite, remove all that must go.
elinorbgr Feb 22, 2018
7daaa1d
Message dispatching machinnery.
elinorbgr Feb 25, 2018
9b7f3ba
Cleanup scanner structure
elinorbgr Feb 25, 2018
ba63d11
cargo fmt
elinorbgr Feb 25, 2018
6a7e7f0
Bases of codegen & enums
elinorbgr Feb 25, 2018
1747d04
Update travis for rustfmt-preview
elinorbgr Feb 25, 2018
fb93562
scanner: message ser/deser machinnery
elinorbgr Feb 26, 2018
fc6de46
scanner: extension traits for client proxies
elinorbgr Feb 26, 2018
32b5edb
cleanup & protocol_macro
elinorbgr Feb 26, 2018
a8e0e74
Reintroduce scanner tests.
elinorbgr Feb 26, 2018
5e2e48a
fix 1.20 build & travis coverage
elinorbgr Feb 26, 2018
da18af0
Simplify client codegen with w_proxy_create
elinorbgr Feb 27, 2018
69ec533
fmt tests
elinorbgr Mar 2, 2018
d090c11
client: connection machinnery.
elinorbgr Mar 2, 2018
408cb14
client: proxy wrapper and !send implementations
elinorbgr Mar 13, 2018
0b624e1
client: create other event queues
elinorbgr Mar 13, 2018
c484280
client: add missing export
elinorbgr Mar 20, 2018
221c1de
server: loop & globals machinnery
elinorbgr Mar 22, 2018
df6ef54
sys: ListernerWithUserData
elinorbgr Mar 28, 2018
e924dbe
server: client tracking machinnery
elinorbgr Mar 29, 2018
e93620c
Make Implementation a trait
elinorbgr Apr 2, 2018
a8bdf35
server: use Implementation for globals
elinorbgr Apr 2, 2018
94de054
server: listening socket management
elinorbgr Apr 2, 2018
1b3c81d
server: event sources
elinorbgr Apr 2, 2018
acb0643
commons: API docs
elinorbgr Apr 4, 2018
b091117
client: API docs
elinorbgr Apr 4, 2018
62a51e5
travis: rework & use codecov
elinorbgr Apr 4, 2018
80585d0
test: force dlopen feature in tests
elinorbgr Apr 4, 2018
f7c90d3
cargo fmt
elinorbgr Apr 4, 2018
00c59c8
client: prepare_read()
elinorbgr Apr 4, 2018
02e81d6
tests: skeletton
elinorbgr Apr 4, 2018
ae096ed
tests: import all from helpers in skel
elinorbgr Apr 4, 2018
8dc32be
tests: server dispatch_idle
elinorbgr Apr 5, 2018
2c55b3f
server: api docs
elinorbgr Apr 5, 2018
bd92443
travis: use containers
elinorbgr Apr 5, 2018
0980506
travis: actually we need sudo for coverage
elinorbgr Apr 5, 2018
914d6d0
commons: crate doc
elinorbgr Apr 6, 2018
608d803
client: crate-level doc
elinorbgr Apr 6, 2018
bf5adce
Doc typos.
elinorbgr Apr 6, 2018
76ee33b
client: cursor & EGL
elinorbgr Apr 6, 2018
882a6ea
server: crate docs
elinorbgr Apr 6, 2018
49cdbd1
client: minimal GlobalManager
elinorbgr Apr 6, 2018
798bcc7
more tests
elinorbgr Apr 7, 2018
81deaa9
server: doc typos
elinorbgr Apr 7, 2018
81bbd60
client: callback for GlobalManager
elinorbgr Apr 7, 2018
a269762
client: examples
elinorbgr Apr 7, 2018
1d0e09e
Use singular for Event and Request types.
elinorbgr Apr 9, 2018
e381b87
fix typos in comments
elinorbgr Apr 9, 2018
69b25fc
Expose version of Proxy/Resource
elinorbgr Apr 9, 2018
508e8a4
client: differentiate instanciate_auto/exact in GlobalManager
elinorbgr Apr 9, 2018
445ce97
Proxy/Resource::is_implemented_with
elinorbgr Apr 12, 2018
9961a68
server: add Resource::post_error
elinorbgr Apr 12, 2018
2cf922d
server: make Resource::implement_nonsend safe
elinorbgr Apr 13, 2018
32fecbd
server: Resource<I> is Send+Sync
elinorbgr Apr 13, 2018
7e9f5a7
Proxy/Resource::equals
elinorbgr Apr 14, 2018
196d923
server: Client::equals(..)
elinorbgr Apr 15, 2018
d264ad0
server: Resource::same_client_as(..)
elinorbgr Apr 15, 2018
df1b632
server: Display:c_ptr()
elinorbgr Apr 17, 2018
18d1e45
Gracefully handle NULL objects from protocol races.
elinorbgr Apr 20, 2018
fb92d72
Update README and CHANGELOG
elinorbgr Apr 20, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
error_on_line_overflow = false
fn_args_density = "Compressed"
fn_args_layout = "Visual"
fn_arg_intent = "Tabbed"
reorder_imports = true
reorder_imported_names = true
report_todo = "Never"
report_fixme = "Never"
use_try_shorthand = true
max_width = 110
51 changes: 32 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ cache: cargo

dist: trusty

addons:
apt:
sources:
- sourceline: 'ppa:wayland.admin/daily-builds'
packages:
- libssl-dev
- libwayland-dev
sudo: required

rust:
- 1.20.0
Expand All @@ -21,6 +15,13 @@ rust:
matrix:
allow_failures:
- rust: nightly
include:
- rust: stable
env: BUILD_FMT=1
- rust: stable
env: TARPAULIN=1
- rust: stable
env: BUILD_DOC=1

branches:
only:
Expand All @@ -31,29 +32,40 @@ before_script:
- mkdir $(pwd)/socket
- export XDG_RUNTIME_DIR="$(pwd)/socket"
- |
if [ $TRAVIS_RUST_VERSION = "nightly" ]; then
cargo install rustfmt-nightly --force
if [ -n "$BUILD_FMT" ]; then
rustup component add rustfmt-preview
elif [ -n "$TARPAULIN" ]; then
bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
elif [ -n "$BUILD_DOC" ]; then
echo "Building doc, nothing to install..."
else
# Building & running tests, we need to install the wayland lib
./travis_install_wayland.sh "1.12.0"
fi
- which cargo-tarpaulin || cargo install cargo-tarpaulin
- which cargo-install-update || cargo install cargo-update
- cargo install-update -a

os:
- linux

script:
- |
if [ $TRAVIS_RUST_VERSION = "nightly" ]; then
if [ -n "$BUILD_FMT" ]; then
cargo fmt --all -- --write-mode=diff
elif [ -n "$TARPAULIN" ]; then
cargo tarpaulin --ignore-tests --out Xml
elif [ -n "$BUILD_DOC" ]; then
cargo doc --all --no-deps --all-features
else
env LD_LIBRARY_PATH=~/install/lib:$LD_LIBRARY_PATH cargo test --all --all-features
fi
- cargo build --all --all-features
- cargo test --all --all-features
- cargo tarpaulin --ignore-tests --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
- cargo doc --all --no-deps --all-features

after_success:
- cp ./doc_index.html ./target/doc/index.html
- cp ./rust.css ./target/doc/rust.css
- |
if [ -n "$TARPAULIN" ]; then
bash <(curl -s https://codecov.io/bash)
elif [ -n "$BUILD_DOC" ]; then
cp ./doc_index.html ./target/doc/index.html
cp ./rust.css ./target/doc/rust.css
fi

deploy:
provider: pages
Expand All @@ -63,6 +75,7 @@ deploy:
on:
branch: master
rust: stable
env: BUILD_DOC=1

notifications:
webhooks:
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ publish = false

[dependencies]
wayland-scanner = { path = "./wayland-scanner" }
wayland-client = { path = "./wayland-client", default-features = false, features = ["cursor"] }
wayland-server = { path = "./wayland-server" }
wayland-client = { path = "./wayland-client", default-features = false, features = ["cursor", "dlopen"] }
wayland-server = { path = "./wayland-server", features = ["dlopen"] }
wayland-protocols = { path = "./wayland-protocols", features = ["client", "server", "unstable_protocols"] }

[dev-dependencies]
difference = "1.0"

[workspace]
members = [ "wayland-sys", "wayland-scanner", "wayland-client", "wayland-server", "wayland-protocols" ]
members = [ "wayland-sys", "wayland-scanner", "wayland-client", "wayland-server", "wayland-protocols", "wayland-commons" ]
102 changes: 0 additions & 102 deletions tests/attach_null_to_surface.rs

This file was deleted.

79 changes: 0 additions & 79 deletions tests/basic_global.rs

This file was deleted.

Loading