189 lines
No EOL
6.3 KiB
TOML
189 lines
No EOL
6.3 KiB
TOML
[package]
|
|
name = "ziya"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "One stop shop for your trading habit - Slint version"
|
|
authors = ["rizary"]
|
|
license = "MIT"
|
|
|
|
[lib]
|
|
name = "ziya"
|
|
|
|
[dependencies]
|
|
slint = "1.8.0"
|
|
i-slint-backend-winit = "1.12.0"
|
|
winit = "0.30"
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
tokio-util = "0.7.13"
|
|
async-compat = "0.2.4"
|
|
anyhow = "1.0"
|
|
log = "0.4"
|
|
env_logger = "0.11"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tracing-appender = "0.2"
|
|
chrono = { version = "0.4.39", features = ["serde"] }
|
|
chrono-tz = "0.10.3"
|
|
redis = { version = "0.32.2", features = ["aio", "tokio-comp"] }
|
|
bb8 = "0.9"
|
|
bb8-redis = "0.24.0"
|
|
solana-sdk = "2.3.0"
|
|
solana-pubkey = "2.3.0"
|
|
thiserror = "2.0.12"
|
|
futures-util = "0.3"
|
|
tokio-stream = "0.1"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
toml = "0.8"
|
|
bs58 = "0.5"
|
|
petgraph = { version = "0.8.1", features = ["serde-1"] }
|
|
|
|
[build-dependencies]
|
|
slint-build = "1.12.0"
|
|
|
|
[features]
|
|
default = ["prod"]
|
|
dev = []
|
|
prod = []
|
|
deep-trace = []
|
|
|
|
[profile.release-with-debug]
|
|
inherits = "release"
|
|
debug = true
|
|
opt-level = 3
|
|
lto = true
|
|
codegen-units = 1
|
|
|
|
# Config for 'git cliff'
|
|
# Run with `GITHUB_TOKEN=$(gh auth token) git cliff --bump -up CHANGELOG.md`
|
|
# https://git-cliff.org/docs/configuration
|
|
[workspace.metadata.git-cliff.bump]
|
|
features_always_bump_minor = false
|
|
breaking_always_bump_major = false
|
|
|
|
[workspace.metadata.git-cliff.remote.github]
|
|
owner = "rizilab"
|
|
repo = "ziya"
|
|
|
|
[workspace.metadata.git-cliff.changelog]
|
|
# changelog header
|
|
header = """
|
|
# Changelog\n
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n
|
|
"""
|
|
# template for the changelog body
|
|
# https://keats.github.io/tera/docs/#introduction
|
|
body = """
|
|
{%- macro remote_url() -%}
|
|
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
|
|
{%- endmacro -%}
|
|
|
|
{% if version -%}
|
|
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
|
{% else -%}
|
|
## [Unreleased]
|
|
{% endif -%}
|
|
|
|
{% for group, commits in commits | group_by(attribute="group") %}
|
|
### {{ group | striptags | trim | upper_first }}
|
|
{%- for commit in commits %}
|
|
- {% if commit.breaking %}**BREAKING** {% endif -%}
|
|
{% if commit.scope %}*({{ commit.scope }})* {% endif -%}
|
|
{{ commit.message | trim | upper_first }}\
|
|
{% if commit.github.username and commit.github.username != "rizary" %} by \
|
|
[@{{ commit.github.username }}](https://github.com/{{ commit.github.username }})\
|
|
{%- endif -%}
|
|
{% if commit.github.pr_number %} in \
|
|
[#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }})\
|
|
{%- endif -%}.
|
|
{%- set fixes = commit.footers | filter(attribute="token", value="Fixes") -%}
|
|
{%- set closes = commit.footers | filter(attribute="token", value="Closes") -%}
|
|
{% for footer in fixes | concat(with=closes) -%}
|
|
{%- set issue_number = footer.value | trim_start_matches(pat="#") %} \
|
|
([{{ footer.value }}]({{ self::remote_url() }}/issues/{{ issue_number }}))\
|
|
{%- endfor -%}
|
|
{% if commit.body %}
|
|
{%- for section in commit.body | trim | split(pat="\n\n") %}
|
|
{% raw %} {% endraw %}- {{ section | replace(from="\n", to=" ") }}
|
|
{%- endfor -%}
|
|
{%- endif -%}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
{%- if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
|
|
### New Contributors
|
|
{%- endif -%}
|
|
|
|
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
|
|
- @{{ contributor.username }} made their first contribution
|
|
{%- if contributor.pr_number %} in \
|
|
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
|
|
{%- endif %}
|
|
{%- endfor %}\n
|
|
"""
|
|
# template for the changelog footer
|
|
footer = """
|
|
{%- macro remote_url() -%}
|
|
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
|
|
{%- endmacro -%}
|
|
|
|
{% for release in releases -%}
|
|
{% if release.version -%}
|
|
{% if release.previous.version -%}
|
|
[{{ release.version | trim_start_matches(pat="v") }}]: \
|
|
{{ self::remote_url() }}/compare/{{ release.previous.version }}...{{ release.version }}
|
|
{% else -%}
|
|
{#- compare against the initial commit for the first version -#}
|
|
[{{ release.version | trim_start_matches(pat="v") }}]: \
|
|
{{ self::remote_url() }}/compare/{{ release.commit_id }}...{{ release.version }}
|
|
{% endif -%}
|
|
{% else -%}
|
|
[Unreleased]: {{ self::remote_url() }}/compare/{{ release.previous.version }}...HEAD
|
|
{% endif -%}
|
|
{%- endfor -%}
|
|
"""
|
|
# remove the leading and trailing whitespace from the templates
|
|
trim = true
|
|
# postprocessors
|
|
postprocessors = []
|
|
|
|
[workspace.metadata.git-cliff.git]
|
|
# parse the commits based on https://www.conventionalcommits.org
|
|
conventional_commits = true
|
|
# filter out the commits that are not conventional
|
|
filter_unconventional = true
|
|
# process each line of a commit as an individual commit
|
|
split_commits = false
|
|
# regex for preprocessing the commit messages
|
|
commit_preprocessors = []
|
|
# regex for parsing and grouping commits
|
|
commit_parsers = [
|
|
{ message = "^feat", group = "<!-- 0 -->Features" },
|
|
{ body = ".*security", group = "<!-- 1 -->Security" },
|
|
{ message = "^fix", group = "<!-- 2 -->Bug Fixes" },
|
|
{ message = "^perf", group = "<!-- 3 -->Performance" },
|
|
{ message = "^doc", group = "<!-- 4 -->Documentation" },
|
|
{ message = "^test", group = "<!-- 5 -->Tests" },
|
|
{ message = "^refactor", group = "<!-- 6 -->Refactor" },
|
|
{ message = "^style", group = "<!-- 7 -->Style" },
|
|
{ message = "^chore", group = "<!-- 8 -->Miscellaneous" },
|
|
{ message = "^ci", default_scope = "ci", group = "<!-- 8 -->Miscellaneous" },
|
|
{ message = "^release", skip = true },
|
|
]
|
|
# protect breaking changes from being skipped due to matching a skipping commit_parser
|
|
protect_breaking_commits = false
|
|
# filter out the commits that are not matched by commit parsers
|
|
filter_commits = false
|
|
# regex for matching git tags
|
|
tag_pattern = "v[0-9].*"
|
|
# regex for skipping tags
|
|
skip_tags = ""
|
|
# regex for ignoring tags
|
|
ignore_tags = ""
|
|
# sort the tags topologically
|
|
topo_order = false
|
|
# sort the commits inside sections by oldest/newest order
|
|
sort_commits = "oldest" |