@@ -4,7 +4,7 @@ use hotfix_dictionary::{self as dict, TagU32};
44use indoc:: indoc;
55use std:: marker:: PhantomData ;
66
7- const FEFIX_VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
7+ const HOTFIX_VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
88
99/// Creates a [`String`] that contains a multiline Rust "Doc" comment explaining
1010/// that all subsequent code was automatically generated.
@@ -14,21 +14,21 @@ const FEFIX_VERSION: &str = env!("CARGO_PKG_VERSION");
1414/// leading whitespace.
1515///
1616/// ```text
17- /// // Generated automatically by FerrumFIX . Do not modify manually.
17+ /// // Generated automatically by HotFIX . Do not modify manually.
1818/// ```
1919pub fn generated_code_notice ( ) -> String {
2020 use chrono:: prelude:: * ;
2121
2222 format ! (
2323 indoc!(
2424 r#"
25- // Generated automatically by FerrumFIX {} on {}.
25+ // Generated automatically by HotFIX {} on {}.
2626 //
2727 // DO NOT MODIFY MANUALLY.
2828 // DO NOT COMMIT TO VERSION CONTROL.
2929 // ALL CHANGES WILL BE OVERWRITTEN."#
3030 ) ,
31- FEFIX_VERSION ,
31+ HOTFIX_VERSION ,
3232 Utc :: now( ) . to_rfc2822( ) ,
3333 )
3434}
@@ -102,8 +102,8 @@ pub struct Settings {
102102 pub indentation : String ,
103103 /// The indentation level of all generated Rust code. Zero by default.
104104 pub indentation_depth : u32 ,
105- /// The name of the `fefix ` crate for imports. `fefix ` by default.
106- pub fefix_crate_name : String ,
105+ /// The name of the `hotfix ` crate for imports. `hotfix ` by default.
106+ pub hotfix_crate_name : String ,
107107 /// A list of derive macros on top of all generated FIX datatype `enum`s. E.g.:
108108 ///
109109 /// ```
@@ -147,7 +147,7 @@ impl Default for Settings {
147147 "FieldType" . to_string( ) ,
148148 ] ,
149149 attributes_for_allowed_values : vec ! [ ] ,
150- fefix_crate_name : "hotfix" . to_string ( ) ,
150+ hotfix_crate_name : "hotfix" . to_string ( ) ,
151151 phantom : PhantomData ,
152152 }
153153 }
@@ -214,9 +214,9 @@ pub fn gen_definitions(fix_dictionary: &dict::Dictionary, settings: &Settings) -
214214
215215 // {top_comment}
216216
217- use {fefix_path }::dict::FieldLocation;
218- use {fefix_path }::dict::FixDatatype;
219- use {fefix_path }::{{FieldType, HardCodedFixFieldDefinition}};
217+ use {hotfix_path }::dict::FieldLocation;
218+ use {hotfix_path }::dict::FixDatatype;
219+ use {hotfix_path }::{{FieldType, HardCodedFixFieldDefinition}};
220220
221221 {enum_definitions}
222222
@@ -226,7 +226,7 @@ pub fn gen_definitions(fix_dictionary: &dict::Dictionary, settings: &Settings) -
226226 top_comment = top_comment,
227227 enum_definitions = enums,
228228 field_defs = field_defs,
229- fefix_path = settings. fefix_crate_name ,
229+ hotfix_path = settings. hotfix_crate_name ,
230230 ) ;
231231 code
232232}
0 commit comments