You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add more documentation to the smb-msg crate, and improve code
formatting.
* **Bug Fixes & Improvements**
* Improved message structure parsing and validation
* Better support for SMB2/SMB3 feature detection and negotiation
* **Chores**
* Workspace reorganization with modular crate structure
* Added safety constraints across crates
# Utility for documenting structures based on MSDN specifications
2
+
3
+
- When you document a structure, the *final* document you use should be official Microsoft documentation.
4
+
5
+
- Structure documentation should include:
6
+
- A brief description of the structure's purpose.
7
+
- A reference to the page. Use the index of specifications (MS-SMB2 X.Y.Z...), do not put url parts.
8
+
- Field documentation should be brief and helpful, if any critical information is provided, include it.
9
+
- Never include constant names or values in the documentation! especially bit shift flags, or arbitrary symbols.
10
+
- Don't make up stuff! Always base documentation on official documentation.
11
+
- Avoid documenting for the sake of documenting. If the documentation doesn't add value, don't add it. (e.g. don't just repeat the field name in the field documentation...).
12
+
- Do not summarize or put again the instructions, that just makes me pay for more tokens.
13
+
14
+
- If the structure is under the `smb-msg` crate, you can look up the documentation.
15
+
- Make sure that the documentation is MS-SMB2 2.* indexed - that's where structures are documented.
16
+
- Request the documentation page to be used, do not try to look it up yourself. It won't work!
17
+
- Do not simple document helper structures that are not part of the specification and/or produced by macros.
18
+
- This does NOT apply to enums that represent possible field values, for example, or bitfield structs - of course!
0 commit comments