Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
@@ -0,0 +1,12 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: static_content
snapshot_kind: text
---
#[must_use]
pub fn get_embedded_static_assets() -> std::collections::HashMap<String, &'static [u8]> {
let mut assets = std::collections::HashMap::new();
assets.insert("/css/style.css".to_string(), include_bytes!("[TEST_ROOT]/assets/css/style.css") as &[u8]);
assets.insert("/js/app.js".to_string(), include_bytes!("[TEST_ROOT]/assets/js/app.js") as &[u8]);
assets
}
@@ -0,0 +1,14 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: template_content
snapshot_kind: text
---
/// Returns a BTreeMap of templates in dependency order (parents before children)
#[must_use]
pub fn get_embedded_templates() -> std::collections::BTreeMap<String, &'static str> {
let mut templates = std::collections::BTreeMap::new();
// Base template with no parent
templates.insert("index.html".to_string(), include_str!("[TEST_ROOT]/assets/views/index.html"));
templates
}
@@ -0,0 +1,19 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: file_mappings
snapshot_kind: text
---
[
(
"[TEST_ROOT]/assets/css/style.css",
"/css/style.css",
),
(
"[TEST_ROOT]/assets/js/app.js",
"/js/app.js",
),
(
"[TEST_ROOT]/assets/views/index.html",
"index.html",
),
]
@@ -0,0 +1,11 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: file_mappings
snapshot_kind: text
---
[
(
"[TEST_ROOT]/assets/css/style.css",
"/css/style.css",
),
]
@@ -0,0 +1,24 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: template_content
snapshot_kind: text
---
/// Returns a BTreeMap of templates in dependency order (parents before children)
#[must_use]
pub fn get_embedded_templates() -> std::collections::BTreeMap<String, &'static str> {
let mut templates = std::collections::BTreeMap::new();
// Base template with no parent
templates.insert("base.html".to_string(), include_str!("[TEST_ROOT]/assets/views/base.html"));
// Base template with no parent
templates.insert("error.html".to_string(), include_str!("[TEST_ROOT]/assets/views/error.html"));
// Template that extends base.html
templates.insert("layouts/app.html".to_string(), include_str!("[TEST_ROOT]/assets/views/layouts/app.html"));
// Template that extends layouts/app.html
templates.insert("layouts/authenticated.html".to_string(), include_str!("[TEST_ROOT]/assets/views/layouts/authenticated.html"));
// Template that extends layouts/authenticated.html
templates.insert("dashboard/index.html".to_string(), include_str!("[TEST_ROOT]/assets/views/dashboard/index.html"));
// Template that extends layouts/authenticated.html
templates.insert("dashboard/settings.html".to_string(), include_str!("[TEST_ROOT]/assets/views/dashboard/settings.html"));
templates
}
@@ -0,0 +1,15 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: discovered_dirs
snapshot_kind: text
---
[
"[TEST_ROOT]/my_assets",
"[TEST_ROOT]/my_assets/css",
"[TEST_ROOT]/my_assets/empty_dir",
"[TEST_ROOT]/my_assets/images",
"[TEST_ROOT]/my_assets/js",
"[TEST_ROOT]/my_assets/js/vendor",
"[TEST_ROOT]/my_assets/views",
"[TEST_ROOT]/my_assets/views/user",
]
@@ -0,0 +1,10 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: static_file_content
snapshot_kind: text
---
#[must_use]
pub fn get_embedded_static_assets() -> std::collections::HashMap<String, &'static [u8]> {
// No assets found
std::collections::HashMap::new()
}
@@ -0,0 +1,10 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: templates_file_content
snapshot_kind: text
---
#[must_use]
pub fn get_embedded_templates() -> std::collections::HashMap<String, &'static str> {
// No templates found
std::collections::HashMap::new()
}
@@ -0,0 +1,12 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: static_content
snapshot_kind: text
---
#[must_use]
pub fn get_embedded_static_assets() -> std::collections::HashMap<String, &'static [u8]> {
let mut assets = std::collections::HashMap::new();
assets.insert("/css/style.css".to_string(), include_bytes!("[TEST_ROOT]/assets/css/style.css") as &[u8]);
assets.insert("/js/app.js".to_string(), include_bytes!("[TEST_ROOT]/assets/js/app.js") as &[u8]);
assets
}
@@ -0,0 +1,15 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: template_content
snapshot_kind: text
---
#[must_use]
pub fn get_embedded_templates() -> std::collections::HashMap<String, &'static str> {
let mut templates = std::collections::HashMap::new();
// Debug log of template keys for inheritance:
// Template key: "base.html"
// Template key: "posts/list.html"
templates.insert("base.html".to_string(), include_str!("[TEST_ROOT]/assets/views/base.html"));
templates.insert("posts/list.html".to_string(), include_str!("[TEST_ROOT]/assets/views/posts/list.html"));
templates
}
@@ -0,0 +1,14 @@
---
source: tests/build_scripts/embedded_assets.rs
expression: template_content
snapshot_kind: text
---
/// Returns a BTreeMap of templates in dependency order (parents before children)
#[must_use]
pub fn get_embedded_templates() -> std::collections::BTreeMap<String, &'static str> {
let mut templates = std::collections::BTreeMap::new();
// Base template with no parent
templates.insert("index.html".to_string(), include_str!("[TEST_ROOT]/assets/views/index.html"));
templates
}