Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cargo config auto-gen #51

Merged
merged 20 commits into from
Oct 11, 2024
Merged

feat: add cargo config auto-gen #51

merged 20 commits into from
Oct 11, 2024

Conversation

leoadonia
Copy link
Collaborator

@leoadonia leoadonia commented Sep 26, 2024

  • 新增 option, ten_rust_enable_gen_cargo_config, 默认为 true
  • 对于开发者,在本地开发时,不用做任何设置
  • 对于CI,默认关闭 ten_rust_enable_gen_cargo_config, 即以 RUSTFLAGS 环境变量执行cargo编译.
  • 支持如下任意组合方式:
    • enable_sanitizer 为 true 或 false
    • ten_rust_enable_gen_cargo_config 为 true 或 false
    • is_clang 为 true 或 false
    • debug 或者 release

@leoadonia leoadonia requested a review from halajohn as a code owner September 26, 2024 13:03
@halajohn halajohn self-assigned this Sep 29, 2024
@halajohn halajohn force-pushed the feature/cargo-config branch from d5d93f0 to 7600208 Compare September 29, 2024 11:19
build/common/rust/rust_gen_cargo_config.py Outdated Show resolved Hide resolved
build/ten_rust/options.gni Outdated Show resolved Hide resolved
@halajohn halajohn self-requested a review October 11, 2024 03:07
core/src/ten_rust/BUILD.gn Outdated Show resolved Hide resolved
build/ten_rust/options.gni Outdated Show resolved Hide resolved
build/ten_rust/options.gni Outdated Show resolved Hide resolved
build/common/rust/rust_gen_cargo_config.py Show resolved Hide resolved
@halajohn halajohn merged commit 6fb1f11 into main Oct 11, 2024
12 checks passed
@halajohn halajohn deleted the feature/cargo-config branch October 11, 2024 17:16
halajohn pushed a commit that referenced this pull request Oct 14, 2024
…ore conveniently

docs: fix local registry and names (#89)

feat: enhance default_extension_go for template mode (#88)

Co-authored-by: Hu Yueh-Wei <[email protected]>

docs: add a tutorial for running model locally in a Python extension (#90)

Co-authored-by: Hu Yueh-Wei <[email protected]>

fix: rename test cases

feat: upload runtime only, ignore others (#93)

fix: no need to package src (#92)

feat: add a python script for auto update package versions according … (#85)

Co-authored-by: Hu Yueh-Wei <[email protected]>

docs: updating ten_agent_server from astra_agents_dev (#95)

* docs: updating ten_agent_server from astra_agents_dev

Updating ten_agent_server from astra_agents_dev

* docs: fixing typo

Fixing typo

fix: fix some integration test cases (#94)

feat: add cargo config auto-gen (#51)

Co-authored-by: Hu Yueh-Wei <[email protected]>

chore: update version and publish to cloud store automatically (#97)

Co-authored-by: Hu Yueh-Wei <[email protected]>

fix: refine codes

fix: update versions of dependencies

fix: refine codes

fix: add TenEnvAsync class for AsyncExtension

fix: add more comments

chore: improve and supplement Python test cases

fix: refine naming

fix: refine naming

fix: refine codes

fix: join thread in destructor of AsyncExtension

fix: forked repo can not get version since tag is not synced (#99)

doc: update summary part

feat: add linux/arm64 (#98)

Co-authored-by: Hu Yueh-Wei <[email protected]>

chore: update to latest ten_gn

chore: add more CI test cases (#136)

fix: join thread before on_deinit_done to prevent from memory leak in Python binding

fix: create a new Python thread to avoid blocking extension thread
halajohn pushed a commit that referenced this pull request Oct 14, 2024
…ore conveniently

docs: fix local registry and names (#89)

feat: enhance default_extension_go for template mode (#88)

Co-authored-by: Hu Yueh-Wei <[email protected]>

docs: add a tutorial for running model locally in a Python extension (#90)

Co-authored-by: Hu Yueh-Wei <[email protected]>

fix: rename test cases

feat: upload runtime only, ignore others (#93)

fix: no need to package src (#92)

feat: add a python script for auto update package versions according … (#85)

Co-authored-by: Hu Yueh-Wei <[email protected]>

docs: updating ten_agent_server from astra_agents_dev (#95)

* docs: updating ten_agent_server from astra_agents_dev

Updating ten_agent_server from astra_agents_dev

* docs: fixing typo

Fixing typo

fix: fix some integration test cases (#94)

feat: add cargo config auto-gen (#51)

Co-authored-by: Hu Yueh-Wei <[email protected]>

chore: update version and publish to cloud store automatically (#97)

Co-authored-by: Hu Yueh-Wei <[email protected]>

fix: refine codes

fix: update versions of dependencies

fix: refine codes

fix: add TenEnvAsync class for AsyncExtension

fix: add more comments

chore: improve and supplement Python test cases

fix: refine naming

fix: refine naming

fix: refine codes

fix: join thread in destructor of AsyncExtension

fix: forked repo can not get version since tag is not synced (#99)

doc: update summary part

feat: add linux/arm64 (#98)

Co-authored-by: Hu Yueh-Wei <[email protected]>

chore: update to latest ten_gn

chore: add more CI test cases (#136)

fix: join thread before on_deinit_done to prevent from memory leak in Python binding

fix: create a new Python thread to avoid blocking extension thread
halajohn pushed a commit that referenced this pull request Oct 15, 2024
feat: upload runtime only, ignore others (#93)

fix: no need to package src (#92)

feat: add a python script for auto update package versions according … (#85)

Co-authored-by: Hu Yueh-Wei <[email protected]>

docs: updating ten_agent_server from astra_agents_dev (#95)

* docs: updating ten_agent_server from astra_agents_dev

Updating ten_agent_server from astra_agents_dev

* docs: fixing typo

Fixing typo

fix: fix some integration test cases (#94)

feat: add cargo config auto-gen (#51)

Co-authored-by: Hu Yueh-Wei <[email protected]>

chore: update version and publish to cloud store automatically (#97)

Co-authored-by: Hu Yueh-Wei <[email protected]>

fix: forked repo can not get version since tag is not synced (#99)

doc: update summary part

feat: add linux/arm64 (#98)

Co-authored-by: Hu Yueh-Wei <[email protected]>

chore: update to latest ten_gn

chore: add more CI test cases (#136)

chore: enable more CI test cases (#137)

feat: add a python script to update "supports" in manifest (#138)

feat: add async extension in Python binding in order to use asyncio m… (#91)

Co-authored-by: Hu Yueh-Wei <[email protected]>

chore: disable auto-added supports field in GN build flow

fix: check the app in graph

fix: help message
halajohn pushed a commit that referenced this pull request Oct 15, 2024
feat: upload runtime only, ignore others (#93)

fix: no need to package src (#92)

feat: add a python script for auto update package versions according … (#85)

Co-authored-by: Hu Yueh-Wei <[email protected]>

docs: updating ten_agent_server from astra_agents_dev (#95)

* docs: updating ten_agent_server from astra_agents_dev

Updating ten_agent_server from astra_agents_dev

* docs: fixing typo

Fixing typo

fix: fix some integration test cases (#94)

feat: add cargo config auto-gen (#51)

Co-authored-by: Hu Yueh-Wei <[email protected]>

chore: update version and publish to cloud store automatically (#97)

Co-authored-by: Hu Yueh-Wei <[email protected]>

fix: forked repo can not get version since tag is not synced (#99)

doc: update summary part

feat: add linux/arm64 (#98)

Co-authored-by: Hu Yueh-Wei <[email protected]>

chore: update to latest ten_gn

chore: add more CI test cases (#136)

chore: enable more CI test cases (#137)

feat: add a python script to update "supports" in manifest (#138)

feat: add async extension in Python binding in order to use asyncio m… (#91)

Co-authored-by: Hu Yueh-Wei <[email protected]>

chore: disable auto-added supports field in GN build flow

fix: check the app in graph

fix: help message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants