Commit 1c3a1dbc8c
Unsigned
Layout: unified · split
Cargo.toml +5 −4
| @@ -1,22 +1,23 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "weechat-rust-sample-plugin" | 2 | name = "weechat-matrix" |
| 3 | version = "0.1.0" | 3 | version = "0.1.0" |
| 4 | authors = ["Damir Jelić <poljar@termina.org.uk>"] | 4 | authors = ["Damir Jelić <poljar@termina.org.uk>"] |
| 5 | edition = "2018" | 5 | edition = "2018" |
| 6 | 6 | ||
| 7 | [lib] | 7 | [lib] |
| 8 | name = "weechat_matrix" | 8 | name = "matrix" |
| 9 | crate-type = ["dylib"] | 9 | crate-type = ["dylib"] |
| 10 | 10 | ||
| 11 | [dependencies] | 11 | [dependencies] |
| 12 | libc = "*" | 12 | libc = "*" |
| 13 | futures-preview = "0.3.0-alpha.18" | 13 | futures-preview = "0.3.0-alpha.18" |
| 14 | url = "*" | ||
| 14 | tokio = "0.2.0-alpha.6" | 15 | tokio = "0.2.0-alpha.6" |
| 16 | async-std = { version = "0.99.11", features = [ "unstable" ] } | ||
| 17 | pipe-channel = "*" | ||
| 15 | 18 | ||
| 16 | matrix-nio = { path = "/home/poljar/werk/priv/nio-rust/" } | 19 | matrix-nio = { path = "/home/poljar/werk/priv/nio-rust/" } |
| 17 | 20 | ||
| 18 | weechat = { path = "/home/poljar/werk/misc/rust-weechat/weechat-rs" } | 21 | weechat = { path = "/home/poljar/werk/misc/rust-weechat/weechat-rs" } |
| 19 | weechat-sys = { path = "/home/poljar/werk/misc/rust-weechat/weechat-sys" } | 22 | weechat-sys = { path = "/home/poljar/werk/misc/rust-weechat/weechat-sys" } |
| 20 | async-std = { version = "0.99.11", features = [ "unstable" ] } | ||
| 21 | async-task = { path = "/home/poljar/werk/misc/async-task" } | 23 | async-task = { path = "/home/poljar/werk/misc/async-task" } |
| 22 | pipe-channel = "*" | ||
Makefile +3 −3
| @@ -3,11 +3,11 @@ PREFIX ?= $(WEECHAT_HOME) | |||
| 3 | 3 | ||
| 4 | .PHONY: install install-dir phony lint | 4 | .PHONY: install install-dir phony lint |
| 5 | 5 | ||
| 6 | target/debug/libweechat_matrix.so: src/lib.rs | 6 | target/debug/libmatrix.so: src/lib.rs src/server.rs src/room_buffer.rs |
| 7 | cargo build | 7 | cargo build |
| 8 | 8 | ||
| 9 | install: install-dir | 9 | install: install-dir target/debug/libmatrix.so |
| 10 | install -m644 target/debug/libweechat_matrix.so $(DESTDIR)$(PREFIX)/plugins/weechat-matrix-rs.so | 10 | install -m644 target/debug/libmatrix.so $(DESTDIR)$(PREFIX)/plugins/matrix.so |
| 11 | 11 | ||
| 12 | install-dir: | 12 | install-dir: |
| 13 | install -d $(DESTDIR)$(PREFIX)/plugins | 13 | install -d $(DESTDIR)$(PREFIX)/plugins |