mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-08-04 15:18:17 +00:00
chore: change "default" feature to only enable "core" and "pdu"
Reorganize a bit the dev-dependencies for screenshot/server examples. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
d1b95676f0
commit
3c503cb2d1
5 changed files with 10 additions and 11 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2043,10 +2043,8 @@ dependencies = [
|
|||
"ironrdp-server",
|
||||
"ironrdp-session",
|
||||
"ironrdp-svc",
|
||||
"ironrdp-tls",
|
||||
"pico-args",
|
||||
"rand",
|
||||
"tokio",
|
||||
"tokio-rustls",
|
||||
"tracing",
|
||||
"tracing-subscriber",
|
||||
|
|
|
@ -29,6 +29,7 @@ native-tls = ["ironrdp-tls/native-tls"]
|
|||
|
||||
# Protocols
|
||||
ironrdp = { workspace = true, features = [
|
||||
"session",
|
||||
"input",
|
||||
"graphics",
|
||||
"dvc",
|
||||
|
|
|
@ -25,6 +25,8 @@ panic_hook = ["dep:console_error_panic_hook"]
|
|||
|
||||
# Protocols
|
||||
ironrdp = { workspace = true, features = [
|
||||
"connector",
|
||||
"session",
|
||||
"input",
|
||||
"graphics",
|
||||
"dvc",
|
||||
|
|
|
@ -16,7 +16,7 @@ doctest = false
|
|||
test = false
|
||||
|
||||
[features]
|
||||
default = ["core", "pdu", "connector", "session"]
|
||||
default = ["core", "pdu"]
|
||||
core = ["dep:ironrdp-core"]
|
||||
pdu = ["dep:ironrdp-pdu"]
|
||||
cliprdr = ["dep:ironrdp-cliprdr"]
|
||||
|
@ -50,9 +50,7 @@ ironrdp-displaycontrol = { workspace = true, optional = true }
|
|||
|
||||
[dev-dependencies]
|
||||
ironrdp-blocking.workspace = true
|
||||
ironrdp-server.workspace = true
|
||||
ironrdp-cliprdr-native.workspace = true
|
||||
ironrdp-tls = { workspace = true, features = ["rustls"] }
|
||||
anyhow = "1"
|
||||
async-trait = "0.1"
|
||||
bmp = "0.5"
|
||||
|
@ -60,7 +58,6 @@ pico-args = "0.5"
|
|||
x509-cert = { version = "0.2", default-features = false, features = ["std"] }
|
||||
tracing.workspace = true
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
tokio = { version = "1.40", features = ["full"] }
|
||||
tokio-rustls = "0.26"
|
||||
rand = "0.8"
|
||||
|
||||
|
@ -71,11 +68,12 @@ all-features = true
|
|||
[[example]]
|
||||
name = "screenshot"
|
||||
doc-scrape-examples = true
|
||||
required-features = ["session"]
|
||||
|
||||
[[example]]
|
||||
name = "server"
|
||||
doc-scrape-examples = true
|
||||
required-features = ["cliprdr", "rdpsnd"]
|
||||
required-features = ["cliprdr", "rdpsnd", "server"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
@ -16,15 +16,15 @@ use ironrdp::cliprdr::backend::{CliprdrBackend, CliprdrBackendFactory};
|
|||
use ironrdp::connector::DesktopSize;
|
||||
use ironrdp::rdpsnd::pdu::ClientAudioFormatPdu;
|
||||
use ironrdp::rdpsnd::server::{RdpsndServerHandler, RdpsndServerMessage};
|
||||
use ironrdp_cliprdr_native::StubCliprdrBackend;
|
||||
use ironrdp_server::{
|
||||
use ironrdp::server::{
|
||||
tokio::time::{self, sleep, Duration},
|
||||
tokio::{self, sync::mpsc::UnboundedSender},
|
||||
BitmapUpdate, CliprdrServerFactory, Credentials, DisplayUpdate, KeyboardEvent, MouseEvent, PixelFormat, PixelOrder,
|
||||
RdpServer, RdpServerDisplay, RdpServerDisplayUpdates, RdpServerInputHandler, ServerEvent, ServerEventSender,
|
||||
SoundServerFactory, TlsIdentityCtx,
|
||||
};
|
||||
use ironrdp_cliprdr_native::StubCliprdrBackend;
|
||||
use rand::prelude::*;
|
||||
use tokio::sync::mpsc::UnboundedSender;
|
||||
use tokio::time::{self, sleep, Duration};
|
||||
|
||||
const HELP: &str = "\
|
||||
USAGE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue