Skip to content

Commit

Permalink
New features
Browse files Browse the repository at this point in the history
  - EditorConfig: .editorconfig
  - Issue's templates updated.
  - Support Kafka connection authentication (SASL_PLAINTEXT): windows
    and linux.
  - Messages page:
    * Experimental: copy messages on selection and paste as CSV
  - Trying GitHub workflow for publication.
  • Loading branch information
Miguel Aranha Baldi Horlle committed Apr 8, 2024
1 parent b0fc4e7 commit 7ff1437
Show file tree
Hide file tree
Showing 22 changed files with 2,071 additions and 1,540 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true
[*]
indent_style = space
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8

[*.{build,css,doap,scss,ui,xml,xml.in,xml.in.in,yaml,yml}]
indent_size = 2

[*.{json,py,rs}]
indent_size = 4

[*.{c,h,h.in}]
indent_size = 2
max_line_length = 80

[NEWS]
indent_size = 2
max_line_length = 72
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
53 changes: 53 additions & 0 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build and publish

on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: docker-compose up
- name: Upload Artifact
uses: actions/upload-artifact@v2.3.1
with:
name: executables
path: |
*.AppImage
build-windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build (Windows)
run: docker-compose -f docker-compose.windows.yml up
- name: Make Windows Installer
run: ./create_windows_installer.sh
- name: Zip Portable Windows Artifact
run: zip -r windows-portable.zip package
- name: Upload Artifact
uses: actions/upload-artifact@v2.3.1
with:
name: executables
path: |
*.zip
*.exe
publish:
needs: [build, build-windows]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v2
- uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
**/*.AppImage
**/*.zip
**/*.exe
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"rust-analyzer.linkedProjects": [
"./Cargo.toml"
]
],
"rust-analyzer.showUnlinkedFileNotification": false
}
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,28 @@ gtk = { version = "0.8.1", package = "gtk4", features = ["v4_8"] }
adw = { version = "0.6.0", package = "libadwaita", features = ["v1_2"] }
relm4 = { version = "0.8.0", features = ["libadwaita"] }
relm4-components = "0.8.0"
rdkafka = { version = "0.36.2", features = ["cmake-build"] }
rusqlite = { version = "0.31.0", features = ["bundled"] }
tokio = "0.1.21"
sourceview5 = { version = "0.8.0", features = ["v5_4"] }
directories = "4.0.1"
futures = { version = "0.3.25", default-features = false }
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
ron = "0.8"
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
tracing-tree = "0.2.4"
thiserror = "1.0.58"
chrono = { version = "0.4.37", features = ["serde"] }
chrono-tz = { version = "0.9.0", features = [ "filter-by-regex" ] }
strum = { version = "0.26.2", features = ["derive"] }
rdkafka = { version = "0.36.2", features = [ "cmake-build", "gssapi", "ssl" ] }

[target.'cfg(target_os = "windows")'.dependencies]
sasl2-sys = { version = "0.1.20",features = ["openssl-vendored"]}

[build-dependencies]
openssl-src = { version = "300", default-features = false, features = ["force-engine"] }
#glib-build-tools = "0.19.0"

[package.metadata.appimage]
Expand Down
2 changes: 1 addition & 1 deletion create_windows_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ docker cp LICENSE.md setup:/work/
docker start -i -a setup
docker cp setup:/work/Output/. .
docker rm setup
# rm -r package
zip -r package.zip package
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: "3"
services:
gtk4-rs:
#image: relm4-docker-appimage
image: ghcr.io/miguelbaldi/relm4-docker:latest-appimage
volumes:
- .:/mnt:z
Expand Down
Loading

0 comments on commit 7ff1437

Please sign in to comment.