| Crates.io | smb-msg |
| lib.rs | smb-msg |
| version | 0.11.1 |
| created_at | 2025-10-06 12:56:23.376407+00 |
| updated_at | 2025-12-11 18:22:36.193202+00 |
| description | SMB Messages and structures for `smb-rs` |
| homepage | |
| repository | https://github.com/afiffon/smb-rs |
| max_upload_size | |
| id | 1870175 |
| size | 283,699 |
This crate contains SMB-specific messages and structures, that are used by the SMB protocol.
Mostly, it contains SMB messages (like SMB2 Headers, SMB2 Requests & Responses, etc.).
It also contains additional structures that are used by SMB specifically
(for example, DFS referrals), but common structures (such as GUID) are found in the smb-types crate.
This crate is a part of the
smb-rsproject
This crate is meant to be used with anyone who wants to implement SMB-related functionality in Rust. See the documentation of the crate for more information.
Configure the features to your use case: use server, client, or both.
Documentation for most of the structures in this crate is based on the official Microsoft documentation,
and is vibe-documented accordingly (you can see the instructions in .github/copilot-instructions.md :)).
My tip for those who want an advanced, in-depth understanding of the SMB2 protocol - open up the official MS-SMB2 documentation from Microsoft, and read it alongside the code and documentation here. Most structs are named properly and are easily mappable to the official documentation, so you can get a deep understanding of the protocol that way.
See the smb-dtyp-derive crate for more information about the code generation proc-macros used in this crate.