use crate::permission::Permission;

pub struct FsRule {
    pub path: &'static [&'static str],
    pub permission: Permission,
    pub replacement: &'static str,
}

pub const FS_RULES: &[FsRule] = &[
    FsRule {
        path: &["std", "fs", "read"],
        permission: Permission::FsRead,
        replacement: "::rutherford::runtime::fs::read",
    },
    FsRule {
        path: &["fs", "read"],
        permission: Permission::FsRead,
        replacement: "::rutherford::runtime::fs::read",
    },
    FsRule {
        path: &["std", "fs", "write"],
        permission: Permission::FsWrite,
        replacement: "::rutherford::runtime::fs::write",
    },
    FsRule {
        path: &["fs", "write"],
        permission: Permission::FsWrite,
        replacement: "::rutherford::runtime::fs::write",
    },
];
