Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
12f8e16
- add: start of code generator for rust
RavenX8 Nov 27, 2024
0dff44c
- fix: mapping C++ types to rust types
RavenX8 Nov 27, 2024
f1adf36
- add: simple and complex type conversion
RavenX8 Nov 28, 2024
20cc5d4
- update: github actions/download-artifact to v4
RavenX8 Nov 28, 2024
abd0053
- remove: Unused import
RavenX8 Nov 28, 2024
eafc8b6
- remove: default values can not be set in rust
RavenX8 Nov 28, 2024
3b960b6
- fix: file name was being incorrectly parsed
RavenX8 Nov 28, 2024
995e3c4
- update: enum element names should be in camel case for rust
RavenX8 Nov 28, 2024
8382ca6
- remove: unused default variable
RavenX8 Nov 28, 2024
65ee270
- fix: field names should not be a reserved rust keyword
RavenX8 Nov 28, 2024
c26e650
- fix: more naming issues when outputting rust
RavenX8 Nov 28, 2024
c04ce0b
- add: missing derive directives
RavenX8 Nov 28, 2024
3e39650
- fix: array elements that use a const not being referred to as an usize
RavenX8 Nov 28, 2024
1095eea
- fix: includeXml directives were being pruned incorrectly
RavenX8 Nov 28, 2024
1163f09
- fix: hashmap not actually mapping datatypes correctly since it filt…
RavenX8 Nov 28, 2024
5e252df
- remove: unused import
RavenX8 Nov 28, 2024
c99c4c2
- add: custom encoder and decoder for main struct and restricted types
RavenX8 Dec 9, 2024
c13019e
- update: generated rust code formatting
RavenX8 Dec 9, 2024
31432ec
- add: NullTerminatedString as a type for std::string unless it's a l…
RavenX8 Dec 9, 2024
d384b3c
- add: complex type encode and decode methods
RavenX8 Dec 10, 2024
6ca7c5e
- fix: some warnings about unused variables
RavenX8 Dec 10, 2024
ddc2975
- add: support for client unions in rust without using unions directly
RavenX8 Dec 11, 2024
953d64e
- update: NullTerminatedString to utils crate
RavenX8 Dec 13, 2024
efaf8c3
- update: generated commented now uses the @generated tag
RavenX8 Dec 19, 2024
789b42b
- fix: no longer use Vec for a fixed array
RavenX8 Jan 6, 2025
6355321
- update: generated bincode::Decode impl functions to match bincode 2…
RavenX8 Mar 7, 2025
0dba330
update: bump GitHub Actions dependencies to latest versions
RavenX8 Feb 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
- name: Get processor arch
run: echo "PROCESSOR_ARCH=`uname -p`" >> $GITHUB_ENV
- name: Build
Expand All @@ -20,14 +20,14 @@ jobs:
- name: Prepare Release
run: tar --transform 's/.*\///g' -zcvf ${{github.workspace}}/${{ runner.os }}-${{ env.PROCESSOR_ARCH }}-packet_generator.tar.gz target/*/packet_generator
- name: Upload linux build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v6
with:
name: linux_build
path: ${{github.workspace}}/${{ runner.os }}-${{ env.PROCESSOR_ARCH }}-packet_generator.tar.gz
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
- name: Build
run: cargo build --release --verbose
- name: Run tests
Expand All @@ -37,7 +37,7 @@ jobs:
copy-item ${{github.workspace}}\target\release\packet_generator.exe -destination ${{github.workspace}}\packet_generator.exe
7z a ${{github.workspace}}/windows-amd64-packet_generator.zip ${{github.workspace}}\packet_generator.exe
- name: Upload windows build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v6
with:
name: windows_build
path: ${{github.workspace}}/windows-amd64-packet_generator.zip
Expand All @@ -48,11 +48,11 @@ jobs:
if: github.ref == 'refs/heads/master'
steps:
- name: Download linux build
uses: actions/download-artifact@v2
uses: actions/download-artifact@v6
with:
name: linux_build
- name: Download windows build
uses: actions/download-artifact@v2
uses: actions/download-artifact@v6
with:
name: windows_build
- name: Release
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
packet generator for osiROSE-new

##### Build status
[![lin-badge]][lin-link] [![win-badge]][win-link]

[lin-badge]: https://travis-ci.com/dev-osrose/IDL.svg?branch=master "Linux build status"
[lin-link]: https://travis-ci.com/dev-osrose/IDL "Linux build status"
[win-badge]: https://ci.appveyor.com/api/projects/status/vok7xs5wr1ajqpbc?svg=true "Windows build status"
[win-link]: https://ci.appveyor.com/project/RavenX8/idl "Windows build status"
Check the actions tab for build status.
2 changes: 1 addition & 1 deletion generator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "packet_generator"
version = "0.2.0"
version = "0.2.2"
authors = ["L3nn0x <[email protected]>"]

[dependencies]
Expand Down
5 changes: 4 additions & 1 deletion generator/src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ pub(crate) trait Codegen {
}

pub mod cpp;
pub mod rust;

use clap::Subcommand;

#[derive(Subcommand, Debug)]
pub enum CodegenCommands {
#[command(name = "cpp")]
CppCommand(cpp::CppArgs)
CppCommand(cpp::CppArgs),
#[command(name = "rust")]
RustCommand(rust::RustArgs)
}
Loading