Skip to content

Commit dc74c42

Browse files
authored
fix(common): public fields, v0.40.2 (#1662)
1 parent 3e11ae3 commit dc74c42

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shuttle-common"
3-
version = "0.40.1"
3+
version = "0.40.2"
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true

common/src/templates.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,36 @@ use serde::{Deserialize, Serialize};
55
/// Schema used in `examples/templates.toml` and services that parses it
66
#[derive(Debug, Serialize, Deserialize)]
77
pub struct TemplatesSchema {
8-
templates: HashMap<String, TemplateDefinition>,
8+
pub templates: HashMap<String, TemplateDefinition>,
99
}
1010

1111
#[derive(Debug, Default, Serialize, Deserialize)]
1212
pub struct TemplateDefinition {
1313
/// Title of the template
14-
title: String,
14+
pub title: String,
1515
/// A short description of the template
16-
description: Option<String>,
16+
pub description: Option<String>,
1717
/// Path relative to the repo root
18-
path: Option<String>,
18+
pub path: Option<String>,
1919
/// "starter" OR "template" (default) OR "tutorial"
2020
#[serde(default)]
21-
r#type: TemplateType,
21+
pub r#type: TemplateType,
2222
/// List of areas where this template is useful. Examples: "Web app", "Discord bot", "Monitoring", "Automation", "Utility"
23-
use_cases: Vec<String>,
23+
pub use_cases: Vec<String>,
2424
/// List of keywords that describe the template. Examples: "axum", "serenity", "typescript", "saas", "fullstack", "database"
25-
tags: Vec<String>,
25+
pub tags: Vec<String>,
2626
/// URL to a live instance of the template (if relevant)
27-
live_demo: Option<String>,
27+
pub live_demo: Option<String>,
2828

2929
/// If this template is available in the `cargo shuttle init --template` short-hand options, add that name here
30-
template: Option<String>,
30+
pub template: Option<String>,
3131

3232
/// Set this to true if this is a community template outside of the shuttle-examples repo
33-
community: Option<bool>,
33+
pub community: Option<bool>,
3434
/// GitHub username of the author of the community template
35-
author: Option<String>,
35+
pub author: Option<String>,
3636
/// URL to the repo of the community template
37-
repo: Option<String>,
37+
pub repo: Option<String>,
3838
}
3939

4040
#[derive(Debug, Default, Serialize, Deserialize)]

0 commit comments

Comments
 (0)