Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
feat: move to kebab-case
Browse files Browse the repository at this point in the history
  • Loading branch information
hadjiszs committed Aug 29, 2023
1 parent 058c810 commit 374fa60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/topos/src/config/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::config::node::NodeRole;
use crate::config::Config;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "kebab-case")]
pub struct BaseConfig {
#[serde(default = "default_name")]
pub name: String,
Expand Down
2 changes: 1 addition & 1 deletion crates/topos/src/config/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use crate::components::subnet::commands::Run;
// TODO: Provides the default arguments here
// Serde `flatten` and `default` doesn't work together yet
// https://github.com/serde-rs/serde/issues/1626

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "kebab-case")]
pub struct EdgeConfig {
#[serde(flatten)]
pub args: HashMap<String, String>,
Expand Down
1 change: 1 addition & 0 deletions crates/topos/src/config/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use figment::{
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "kebab-case")]
pub struct SequencerConfig {
/// SubnetId of your Sequencer, hex encoded 32 bytes prefixed with 0x
pub subnet_id: Option<String>,
Expand Down

0 comments on commit 374fa60

Please sign in to comment.