vroomrs 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vroomrs-0.1.1/.craft.yml +22 -0
- vroomrs-0.1.1/.github/workflows/CI.yml +53 -0
- vroomrs-0.1.1/.github/workflows/CODEOWNERS +1 -0
- vroomrs-0.1.1/.github/workflows/build.yml +90 -0
- vroomrs-0.1.1/.github/workflows/release.yml +35 -0
- vroomrs-0.1.1/.gitignore +216 -0
- vroomrs-0.1.1/.pre-commit-config.yaml +17 -0
- vroomrs-0.1.1/Cargo.lock +371 -0
- vroomrs-0.1.1/Cargo.toml +22 -0
- vroomrs-0.1.1/Makefile +65 -0
- vroomrs-0.1.1/PKG-INFO +62 -0
- vroomrs-0.1.1/README.md +53 -0
- vroomrs-0.1.1/docs/Makefile +20 -0
- vroomrs-0.1.1/docs/make.bat +35 -0
- vroomrs-0.1.1/docs/source/conf.py +34 -0
- vroomrs-0.1.1/docs/source/index.rst +22 -0
- vroomrs-0.1.1/pyproject.toml +15 -0
- vroomrs-0.1.1/requirements-dev.txt +3 -0
- vroomrs-0.1.1/scripts/bump-version.sh +17 -0
- vroomrs-0.1.1/src/android/chunk.rs +144 -0
- vroomrs-0.1.1/src/android/mod.rs +1548 -0
- vroomrs-0.1.1/src/debug_images.rs +23 -0
- vroomrs-0.1.1/src/frame/mod.rs +828 -0
- vroomrs-0.1.1/src/frame/python_std_lib.rs +256 -0
- vroomrs-0.1.1/src/lib.rs +76 -0
- vroomrs-0.1.1/src/nodetree.rs +978 -0
- vroomrs-0.1.1/src/profile.rs +416 -0
- vroomrs-0.1.1/src/sample/mod.rs +7 -0
- vroomrs-0.1.1/src/sample/v2.rs +680 -0
- vroomrs-0.1.1/src/types.rs +143 -0
- vroomrs-0.1.1/tests/fixtures/android/chunk/valid.json +109 -0
- vroomrs-0.1.1/tests/fixtures/sample/v2/valid_cocoa.json +81 -0
- vroomrs-0.1.1/tests/fixtures/sample/v2/valid_python.json +58 -0
vroomrs-0.1.1/.craft.yml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
minVersion: "0.34.1"
|
|
3
|
+
github:
|
|
4
|
+
owner: getsentry
|
|
5
|
+
repo: vroomrs
|
|
6
|
+
changelogPolicy: none
|
|
7
|
+
|
|
8
|
+
statusProvider:
|
|
9
|
+
name: github
|
|
10
|
+
artifactProvider:
|
|
11
|
+
name: github
|
|
12
|
+
|
|
13
|
+
preReleaseCommand: bash scripts/bump-version.sh
|
|
14
|
+
targets:
|
|
15
|
+
- name: pypi
|
|
16
|
+
- name: github
|
|
17
|
+
- name: sentry-pypi
|
|
18
|
+
internalPypiRepo: getsentry/pypi
|
|
19
|
+
requireNames:
|
|
20
|
+
- /^vroomrs-*-macosx_*_x86_64.whl$/
|
|
21
|
+
- /^vroomrs-*-macosx_*_arm64.whl$/
|
|
22
|
+
- /^vroomrs-*-manylinux_*_x86_64.whl$/
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- '*'
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
env:
|
|
13
|
+
RUSTFLAGS: -Dwarnings
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
lints:
|
|
17
|
+
name: Style/Linting
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v3
|
|
22
|
+
|
|
23
|
+
- run: rustup toolchain install stable --profile minimal --component rustfmt --component clippy --no-self-update
|
|
24
|
+
|
|
25
|
+
- uses: actions/setup-python@v4
|
|
26
|
+
with:
|
|
27
|
+
python-version: 3.8
|
|
28
|
+
|
|
29
|
+
- uses: Swatinem/rust-cache@v2
|
|
30
|
+
|
|
31
|
+
- name: Run cargo fmt
|
|
32
|
+
run: cargo fmt --all -- --check
|
|
33
|
+
|
|
34
|
+
- name: Run cargo clippy
|
|
35
|
+
run: cargo clippy --all-features -- -D clippy::all
|
|
36
|
+
|
|
37
|
+
test-rust:
|
|
38
|
+
strategy:
|
|
39
|
+
fail-fast: false
|
|
40
|
+
matrix:
|
|
41
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
42
|
+
|
|
43
|
+
name: Rust Test on ${{ matrix.os }}
|
|
44
|
+
runs-on: ${{ matrix.os }}
|
|
45
|
+
|
|
46
|
+
steps:
|
|
47
|
+
- uses: actions/checkout@v3
|
|
48
|
+
|
|
49
|
+
- run: rustup toolchain install stable --profile minimal --no-self-update
|
|
50
|
+
|
|
51
|
+
- uses: Swatinem/rust-cache@v2
|
|
52
|
+
|
|
53
|
+
- run: cargo test --all-features --all-targets
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @getsentry/profiling
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
name: Release build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "release/**"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
linux:
|
|
14
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
15
|
+
strategy:
|
|
16
|
+
matrix:
|
|
17
|
+
platform:
|
|
18
|
+
- runner: ubuntu-latest
|
|
19
|
+
target: x86_64
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
- uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: 3.x
|
|
26
|
+
- name: Build wheels
|
|
27
|
+
uses: PyO3/maturin-action@v1
|
|
28
|
+
with:
|
|
29
|
+
target: ${{ matrix.platform.target }}
|
|
30
|
+
args: --release --out dist --find-interpreter
|
|
31
|
+
sccache: 'true'
|
|
32
|
+
manylinux: auto
|
|
33
|
+
- name: Upload wheels
|
|
34
|
+
uses: actions/upload-artifact@v4
|
|
35
|
+
with:
|
|
36
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
37
|
+
path: dist
|
|
38
|
+
|
|
39
|
+
macos:
|
|
40
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
41
|
+
strategy:
|
|
42
|
+
matrix:
|
|
43
|
+
platform:
|
|
44
|
+
- runner: macos-13
|
|
45
|
+
target: x86_64
|
|
46
|
+
- runner: macos-latest
|
|
47
|
+
target: aarch64
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/checkout@v4
|
|
50
|
+
- uses: actions/setup-python@v5
|
|
51
|
+
with:
|
|
52
|
+
python-version: 3.x
|
|
53
|
+
- name: Build wheels
|
|
54
|
+
uses: PyO3/maturin-action@v1
|
|
55
|
+
with:
|
|
56
|
+
target: ${{ matrix.platform.target }}
|
|
57
|
+
args: --release --out dist --find-interpreter
|
|
58
|
+
sccache: 'true'
|
|
59
|
+
- name: Upload wheels
|
|
60
|
+
uses: actions/upload-artifact@v4
|
|
61
|
+
with:
|
|
62
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
63
|
+
path: dist
|
|
64
|
+
|
|
65
|
+
sdist:
|
|
66
|
+
runs-on: ubuntu-latest
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@v4
|
|
69
|
+
- name: Build sdist
|
|
70
|
+
uses: PyO3/maturin-action@v1
|
|
71
|
+
with:
|
|
72
|
+
command: sdist
|
|
73
|
+
args: --out dist
|
|
74
|
+
- name: Upload sdist
|
|
75
|
+
uses: actions/upload-artifact@v4
|
|
76
|
+
with:
|
|
77
|
+
name: wheels-sdist
|
|
78
|
+
path: dist
|
|
79
|
+
|
|
80
|
+
merge:
|
|
81
|
+
name: Create Release Artifact
|
|
82
|
+
runs-on: ubuntu-latest
|
|
83
|
+
needs: [linux, macos, sdist]
|
|
84
|
+
steps:
|
|
85
|
+
- uses: actions/upload-artifact/merge@v4
|
|
86
|
+
with:
|
|
87
|
+
# Craft expects release assets from github to be a single artifact named after the sha.
|
|
88
|
+
name: ${{ github.sha }}
|
|
89
|
+
pattern: wheels-*
|
|
90
|
+
delete-merged: true
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version:
|
|
7
|
+
description: Version to release
|
|
8
|
+
required: true
|
|
9
|
+
force:
|
|
10
|
+
description: Force a release even when there are release-blockers (optional)
|
|
11
|
+
required: false
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
release:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
name: "Release a new vroomrs version"
|
|
18
|
+
steps:
|
|
19
|
+
- name: Get auth token
|
|
20
|
+
id: token
|
|
21
|
+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
|
|
22
|
+
with:
|
|
23
|
+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
|
|
24
|
+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
with:
|
|
27
|
+
token: ${{ steps.token.outputs.token }}
|
|
28
|
+
fetch-depth: 0
|
|
29
|
+
- name: Prepare release
|
|
30
|
+
uses: getsentry/action-prepare-release@v1
|
|
31
|
+
env:
|
|
32
|
+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
|
|
33
|
+
with:
|
|
34
|
+
version: ${{ github.event.inputs.version }}
|
|
35
|
+
force: ${{ github.event.inputs.force }}
|
vroomrs-0.1.1/.gitignore
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
### macOS ###
|
|
2
|
+
# General
|
|
3
|
+
.DS_Store
|
|
4
|
+
.AppleDouble
|
|
5
|
+
.LSOverride
|
|
6
|
+
|
|
7
|
+
# Icon must end with two \r
|
|
8
|
+
Icon
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# Thumbnails
|
|
12
|
+
._*
|
|
13
|
+
|
|
14
|
+
# Files that might appear in the root of a volume
|
|
15
|
+
.DocumentRevisions-V100
|
|
16
|
+
.fseventsd
|
|
17
|
+
.Spotlight-V100
|
|
18
|
+
.TemporaryItems
|
|
19
|
+
.Trashes
|
|
20
|
+
.VolumeIcon.icns
|
|
21
|
+
.com.apple.timemachine.donotpresent
|
|
22
|
+
|
|
23
|
+
# Directories potentially created on remote AFP share
|
|
24
|
+
.AppleDB
|
|
25
|
+
.AppleDesktop
|
|
26
|
+
Network Trash Folder
|
|
27
|
+
Temporary Items
|
|
28
|
+
.apdisk
|
|
29
|
+
|
|
30
|
+
### macOS Patch ###
|
|
31
|
+
# iCloud generated files
|
|
32
|
+
*.icloud
|
|
33
|
+
|
|
34
|
+
### Python ###
|
|
35
|
+
# Byte-compiled / optimized / DLL files
|
|
36
|
+
__pycache__/
|
|
37
|
+
*.py[cod]
|
|
38
|
+
*$py.class
|
|
39
|
+
|
|
40
|
+
# C extensions
|
|
41
|
+
*.so
|
|
42
|
+
|
|
43
|
+
# Distribution / packaging
|
|
44
|
+
.Python
|
|
45
|
+
build/
|
|
46
|
+
develop-eggs/
|
|
47
|
+
dist/
|
|
48
|
+
downloads/
|
|
49
|
+
eggs/
|
|
50
|
+
.eggs/
|
|
51
|
+
lib/
|
|
52
|
+
lib64/
|
|
53
|
+
parts/
|
|
54
|
+
sdist/
|
|
55
|
+
var/
|
|
56
|
+
wheels/
|
|
57
|
+
share/python-wheels/
|
|
58
|
+
*.egg-info/
|
|
59
|
+
.installed.cfg
|
|
60
|
+
*.egg
|
|
61
|
+
MANIFEST
|
|
62
|
+
|
|
63
|
+
# PyInstaller
|
|
64
|
+
# Usually these files are written by a python script from a template
|
|
65
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
66
|
+
*.manifest
|
|
67
|
+
*.spec
|
|
68
|
+
|
|
69
|
+
# Installer logs
|
|
70
|
+
pip-log.txt
|
|
71
|
+
pip-delete-this-directory.txt
|
|
72
|
+
|
|
73
|
+
# Unit test / coverage reports
|
|
74
|
+
htmlcov/
|
|
75
|
+
.tox/
|
|
76
|
+
.nox/
|
|
77
|
+
.coverage
|
|
78
|
+
.coverage.*
|
|
79
|
+
.cache
|
|
80
|
+
nosetests.xml
|
|
81
|
+
coverage.xml
|
|
82
|
+
*.cover
|
|
83
|
+
*.py,cover
|
|
84
|
+
.hypothesis/
|
|
85
|
+
.pytest_cache/
|
|
86
|
+
cover/
|
|
87
|
+
|
|
88
|
+
# Translations
|
|
89
|
+
*.mo
|
|
90
|
+
*.pot
|
|
91
|
+
|
|
92
|
+
# Django stuff:
|
|
93
|
+
*.log
|
|
94
|
+
local_settings.py
|
|
95
|
+
db.sqlite3
|
|
96
|
+
db.sqlite3-journal
|
|
97
|
+
|
|
98
|
+
# Flask stuff:
|
|
99
|
+
instance/
|
|
100
|
+
.webassets-cache
|
|
101
|
+
|
|
102
|
+
# Scrapy stuff:
|
|
103
|
+
.scrapy
|
|
104
|
+
|
|
105
|
+
# Sphinx documentation
|
|
106
|
+
docs/_build/
|
|
107
|
+
|
|
108
|
+
# PyBuilder
|
|
109
|
+
.pybuilder/
|
|
110
|
+
target/
|
|
111
|
+
|
|
112
|
+
# Jupyter Notebook
|
|
113
|
+
.ipynb_checkpoints
|
|
114
|
+
|
|
115
|
+
# IPython
|
|
116
|
+
profile_default/
|
|
117
|
+
ipython_config.py
|
|
118
|
+
|
|
119
|
+
# pyenv
|
|
120
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
121
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
122
|
+
# .python-version
|
|
123
|
+
|
|
124
|
+
# pipenv
|
|
125
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
126
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
127
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
128
|
+
# install all needed dependencies.
|
|
129
|
+
#Pipfile.lock
|
|
130
|
+
|
|
131
|
+
# poetry
|
|
132
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
133
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
134
|
+
# commonly ignored for libraries.
|
|
135
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
136
|
+
#poetry.lock
|
|
137
|
+
|
|
138
|
+
# pdm
|
|
139
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
140
|
+
#pdm.lock
|
|
141
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
142
|
+
# in version control.
|
|
143
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
144
|
+
.pdm.toml
|
|
145
|
+
|
|
146
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
147
|
+
__pypackages__/
|
|
148
|
+
|
|
149
|
+
# Celery stuff
|
|
150
|
+
celerybeat-schedule
|
|
151
|
+
celerybeat.pid
|
|
152
|
+
|
|
153
|
+
# SageMath parsed files
|
|
154
|
+
*.sage.py
|
|
155
|
+
|
|
156
|
+
# Environments
|
|
157
|
+
.env
|
|
158
|
+
.venv
|
|
159
|
+
env/
|
|
160
|
+
venv/
|
|
161
|
+
ENV/
|
|
162
|
+
env.bak/
|
|
163
|
+
venv.bak/
|
|
164
|
+
|
|
165
|
+
# Spyder project settings
|
|
166
|
+
.spyderproject
|
|
167
|
+
.spyproject
|
|
168
|
+
|
|
169
|
+
# Rope project settings
|
|
170
|
+
.ropeproject
|
|
171
|
+
|
|
172
|
+
# mkdocs documentation
|
|
173
|
+
/site
|
|
174
|
+
|
|
175
|
+
# mypy
|
|
176
|
+
.mypy_cache/
|
|
177
|
+
.dmypy.json
|
|
178
|
+
dmypy.json
|
|
179
|
+
|
|
180
|
+
# Pyre type checker
|
|
181
|
+
.pyre/
|
|
182
|
+
|
|
183
|
+
# pytype static type analyzer
|
|
184
|
+
.pytype/
|
|
185
|
+
|
|
186
|
+
# Cython debug symbols
|
|
187
|
+
cython_debug/
|
|
188
|
+
|
|
189
|
+
# PyCharm
|
|
190
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
191
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
192
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
193
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
194
|
+
#.idea/
|
|
195
|
+
|
|
196
|
+
### Python Patch ###
|
|
197
|
+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
|
|
198
|
+
poetry.toml
|
|
199
|
+
|
|
200
|
+
# ruff
|
|
201
|
+
.ruff_cache/
|
|
202
|
+
|
|
203
|
+
# LSP config files
|
|
204
|
+
pyrightconfig.json
|
|
205
|
+
|
|
206
|
+
### Rust ###
|
|
207
|
+
# Generated by Cargo
|
|
208
|
+
# will have compiled files and executables
|
|
209
|
+
debug/
|
|
210
|
+
|
|
211
|
+
# These are backup files generated by rustfmt
|
|
212
|
+
**/*.rs.bk
|
|
213
|
+
|
|
214
|
+
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
215
|
+
*.pdb
|
|
216
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: local
|
|
3
|
+
hooks:
|
|
4
|
+
- id: rust-linting
|
|
5
|
+
name: Rust linting
|
|
6
|
+
description: Run cargo fmt on files included in the commit. rustfmt should be installed before-hand.
|
|
7
|
+
entry: cargo fmt --all --
|
|
8
|
+
pass_filenames: true
|
|
9
|
+
types: [file, rust]
|
|
10
|
+
language: system
|
|
11
|
+
- id: rust-clippy
|
|
12
|
+
name: Rust clippy
|
|
13
|
+
description: Run cargo clippy on files included in the commit. clippy should be installed before-hand.
|
|
14
|
+
entry: cargo clippy --all-targets --all-features -- -D clippy::all
|
|
15
|
+
pass_filenames: false
|
|
16
|
+
types: [file, rust]
|
|
17
|
+
language: system
|