Skip to content

Commit fed8b9f

Browse files
authored
Merge pull request #128 from AvivNaaman/refactor/crates
2 parents c57fd3d + ad24927 commit fed8b9f

File tree

150 files changed

+1253
-425
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+1253
-425
lines changed

Cargo.lock

Lines changed: 54 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
members = ["smb", "smb-cli"]
2+
members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
@@ -13,6 +13,24 @@ authors = ["Aviv Naaman <[email protected]>"]
1313
keywords = ["smb", "network", "file-sharing", "windows"]
1414
categories = ["network-programming", "parsing", "filesystem"]
1515
readme = "README.md"
16+
version = "0.9.0"
17+
18+
[workspace.dependencies]
19+
# Binary encoding/decoding
20+
binrw = "0.15.0"
21+
modular-bitfield = "0.11.2"
22+
23+
# Utilities
24+
thiserror = "2.0"
25+
paste = "1.0"
26+
time = { version = "0.3.37", features = ["macros"] }
27+
rand = "0.8.5"
28+
log = "0.4.22"
29+
30+
# Async
31+
tokio = { version = "1.43", features = ["full"] }
32+
maybe-async = "0.2"
33+
futures-util = { version = "0.3" }
1634

1735
# Profiling: release (optimized) with debug info
1836
[profile.profiling]
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
[package]
22
name = "smb-cli"
3-
version = "0.1.0"
3+
version.workspace = true
44
edition.workspace = true
55
rust-version.workspace = true
66

77
[dependencies]
88
smb = { path = "../smb", default-features = false }
9-
maybe-async = "0.2"
10-
tokio = { version = "1.43", optional = true, features = ["full"] }
11-
futures-util = { version = "0.3", optional = true }
9+
10+
maybe-async = { workspace = true }
11+
tokio = { workspace = true, optional = true }
12+
futures-util = { workspace = true, optional = true }
1213

1314
# CLI & logging
1415
clap = { version = "4.5.27", features = ["derive"] }
1516
env_logger = "0.11.6"
16-
log = "0.4.22"
17+
log = { workspace = true }
1718

1819
[features]
1920
default = ["async", "smb/default"]
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use crate::{copy::CopyCmd, info::InfoCmd, security::SecurityCmd};
22
use clap::{Parser, Subcommand, ValueEnum};
3+
use smb::Dialect;
34
use smb::{
45
ClientConfig, ConnectionConfig,
56
connection::{
67
AuthMethodsConfig, EncryptionMode, QuicCertValidationOptions, QuicConfig, TransportConfig,
78
},
8-
packets::smb2::Dialect,
99
};
1010

1111
#[derive(Parser)]
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@ use crate::{Cli, path::*};
22
use clap::Parser;
33
use maybe_async::*;
44
use smb::sync_helpers::*;
5-
use smb::{
6-
Client,
7-
packets::{
8-
fscc::{FileAccessMask, FileAttributes},
9-
smb2::CreateOptions,
10-
},
11-
resource::*,
12-
};
5+
use smb::{Client, CreateOptions, FileAccessMask, FileAttributes, resource::*};
136
use std::error::Error;
147
#[cfg(not(feature = "async"))]
158
use std::fs;
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ use clap::{Parser, ValueEnum};
44
use futures_util::StreamExt;
55
use maybe_async::*;
66
use smb::{
7-
Client, FileCreateArgs, UncPath,
8-
packets::fscc::*,
9-
resource::{Directory, GetLen, Resource},
7+
Client, FileAccessMask, FileBasicInformation, FileIdBothDirectoryInformation, UncPath,
8+
resource::*,
109
};
1110
use std::collections::VecDeque;
1211
use std::fmt::Display;

0 commit comments

Comments
 (0)