Ability to construct virtual `Dir`s to mount files and subdirectories into
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
调研方向
首先阅读现有的 Dir 构造 API 和 Pool 的 insert 方法,然后比较路径的打开和表示方式。确定是否可以在不打开虚拟文件和子目录的情况下挂载它们,同时保留递归能力限制。Done 应包括一个已确定的跨平台设计,包括提议的 Windows 驱动器根目录用例,以及有文档记录的行为和测试。
由索引模型根据 Issue 内容生成。
描述
Specifically with the option for those files/dirs to just be paths that don’t need to be opened when mounted. Note: When I say “mount” here this would only be internal to the Dir struct and not actual mounts on the underling filesystem. Similar to Pool’s insert methods.
Would particularly be interesting to create a root Dir which would just be / on Unix but on Windows a folder exposing all drive letters as subfolders. I understand that this specific use case may be controversial, as it seems to go against the spirit of this crate. But I believe the opposite to be true: The great thing about this API is that it doesn’t just have one or two layers (as more basic security systems), but arbitrarily many as each Dir recursively can be used to create narrower views. So I don’t think one global directory as the base to craft more specialised capabilities would inherently be a bad idea.
Based originally on thinking in https://github.com/bytecodealliance/wasmtime/issues/8552 to solve the problem of Windows (unlike Unix) not having a single root folder but essentially one for each volume, which makes cap-std difficult to use in some contexts.
I apologise should what I propose already be possible, in a quick look into the docs I haven’t figured out a way to do this.
- 主要语言
- Rust
- 星标
- 821
- 派生
- 59
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bytecodealliance/cap-std 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
bytecodealliance/cap-std#427 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
bytecodealliance/cap-std#416 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 15/100
bytecodealliance/cap-std#426 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 45/100
bytecodealliance/cap-std#423 · 5 条评论 ·
-
难度 5/5 一周以上 新手友好度 42/100
bytecodealliance/cap-std#408 · 4 条评论 · 2 个 reaction ·
查看 bytecodealliance/cap-std 的全部 Issue
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 75/100
yantrikos/yantrik-os#255 ·
-
bug CLI custom-model
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 70/100
raphamorim/rio#1956 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 条评论 ·