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

Clarity Wasm #4756

Draft
wants to merge 349 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
349 commits
Select commit Hold shift + click to select a range
d8c58b1
feat: handle clar2wasm/developer-mode
hugocaillard Dec 8, 2023
3966aa0
refactor: use 1 byte for contract name length in principals
obycode Dec 13, 2023
82aeb7d
Merge branch 'next' into feat/clarity-wasm-next
obycode Dec 14, 2023
fc18932
chore: fix issues after merge
obycode Dec 15, 2023
4b7c875
fix: cargo check
hugocaillard Dec 15, 2023
4196a6d
Merge pull request #4175 from stacks-network/feat/clarity-wasm-next-m…
obycode Dec 15, 2023
f2d9719
Merge branch 'next' into feat/clarity-wasm-next
obycode Dec 21, 2023
9c781a7
chore: use git branch for all local dependencies
obycode Dec 22, 2023
98b3c5c
chore: fix warnings
obycode Dec 22, 2023
e9d9c3c
fix: add missing dependencies in Dockerfile
obycode Dec 22, 2023
d5b5cda
fix: disable `developer-mode` by default
obycode Dec 22, 2023
52680af
chore: update Cargo.lock
obycode Dec 22, 2023
e7c57e8
fix: replace all uses of `span` with method calls
obycode Sep 20, 2023
88a068b
chore: update Cargo.lock
obycode Dec 22, 2023
9884895
fix: fix issues with `span`
obycode Dec 23, 2023
c8db64c
chore: update Cargo.lock
obycode Dec 23, 2023
35b4e27
fix: handle trait references correctly
obycode Jan 2, 2024
7f64b0f
fix: handle trait references correctly everywhere
obycode Jan 2, 2024
6b05151
fix: fix typo from last commit
obycode Jan 2, 2024
ab4b6e0
fix: don't check type when building a list from buffer
obycode Jan 3, 2024
fd73fd5
chore: update Cargo.lock
obycode Jan 3, 2024
f100ae1
fix: pre-expr span in comments
hugocaillard Jan 12, 2024
25b82d1
chore: update clar2wasm
hugocaillard Jan 12, 2024
06bc351
docs: add patch for local development to .cargo/config
obycode Jan 16, 2024
05dcc6b
Merge branch 'next' into feat/clarity-wasm-next
obycode Jan 18, 2024
f10ed80
chore: update Cargo.lock
obycode Jan 18, 2024
d604de7
fix(clarity-wasm): define-variable should dereference in-memory type …
Acaccia Jan 18, 2024
41f07b7
fix(clarity-wasm): writing of optional value should add placeholders …
Acaccia Jan 18, 2024
4246314
fix(clarity-wasm): wrong spacing in writing of list
Acaccia Jan 18, 2024
7bb0311
chore(clarity-wasm): remove useless mut
Acaccia Jan 18, 2024
863707b
Merge pull request #4259 from stacks-network/fix/read-and-write-wasm-…
Acaccia Jan 18, 2024
aeb0c9c
chore: remove commented packages from Cargo.tomls
obycode Jan 18, 2024
4c2df36
fix(clarity-wasm): read value in linked set-var should dereference in…
Acaccia Jan 22, 2024
5956df3
Merge pull request #4275 from stacks-network/fix/set-variable-in-memory
Acaccia Jan 22, 2024
03fc717
feat: tweak next_initiative delay value
hugocaillard Jan 24, 2024
a1c4e3f
Revert "feat: tweak next_initiative delay value"
hugocaillard Jan 24, 2024
d1aab28
fix: include vrf feature in wasm
hugocaillard Jan 25, 2024
d199dc5
Revert "fix: include vrf feature in wasm"
hugocaillard Jan 25, 2024
7f52960
fix: make wsts optional for wasm build
hugocaillard Jan 26, 2024
a3e0aff
fix: wsts build
hugocaillard Jan 31, 2024
fcee50d
fix: wsts build
hugocaillard Jan 31, 2024
4584351
chore: update dependencies
hugocaillard Jan 31, 2024
1a555e4
fix(clarity-wasm): wasm-to-clarity-value of principal returns 2 Val
Acaccia Feb 2, 2024
83673bd
feat(typechecker): add a concretize method to TypeMap
Acaccia Feb 2, 2024
db25308
refactor(clarity): move the concretize_deep function inside TypeSigna…
Acaccia Feb 6, 2024
3f18dfd
refactor(clarity): concretize_deep has an easier process for TupleType
Acaccia Feb 6, 2024
5ab6364
refactor(clarity): concretize_deep has an easier process for ListType…
Acaccia Feb 6, 2024
3455533
Merge pull request #4338 from stacks-network/fix/wasm-principal
Acaccia Feb 6, 2024
75ee771
feat: for top-level expressions, return the last result
obycode Feb 21, 2024
115fc39
feat(clarity-wasm): add support for writing to wasm string-utf8
Acaccia Feb 21, 2024
de3e3c6
Merge pull request #4410 from stacks-network/feat/write-to-wasm-strin…
Acaccia Feb 22, 2024
5d7821c
chore: updated time dependency
hugocaillard Feb 23, 2024
2221c70
chore: update dependencies targetting the stacks-core repo
hugocaillard Feb 23, 2024
d84cee6
chore: remove unused time dependency from clarity
hugocaillard Feb 23, 2024
1e9df56
chore: update dependencies targetting the stacks-core repo
hugocaillard Feb 23, 2024
22344bb
chore: specify rev for pox-locking's clarity dependency
MicaiahReid Feb 29, 2024
6377198
Merge branch 'next' into feat/clarity-wasm-next
obycode Feb 29, 2024
d1ce196
chore: update dependencies and pox-locking
hugocaillard Mar 5, 2024
1e24853
chore: update clarity version
hugocaillard Mar 5, 2024
5b20b33
fix: feature flag bitvec.rs for wasm-build
hugocaillard Mar 5, 2024
7880b9d
chore: update stacks-common
hugocaillard Mar 5, 2024
eaa7c95
chore: update clarity
hugocaillard Mar 5, 2024
a435e7e
chore: update pox-locking
hugocaillard Mar 5, 2024
14732c0
chore: update dependency using branch
hugocaillard Mar 6, 2024
2ab366d
chore: update cargo.lock
hugocaillard Mar 6, 2024
d6bfaf8
fix(clarity-wasm): map-type functions should read indirectly key/valu…
Acaccia Mar 12, 2024
b68e5ed
fix(clarity-wasm): fix mistakes in type size in memory computation
Acaccia Mar 12, 2024
5e8310b
fix(clarity-wasm): remove useless parentheses
Acaccia Mar 12, 2024
b006cd6
feat: enable private function call to return any type in developer mode
hugocaillard Mar 12, 2024
82d7bc3
Merge pull request #4523 from stacks-network/fix/clarity-wasm-map-type
Acaccia Mar 12, 2024
a76dcdc
fix(clarity-wasm): write to memory of values include space for value …
Acaccia Mar 14, 2024
96aba47
Merge pull request #4540 from stacks-network/fix/clarity-wasm-write-t…
obycode Mar 14, 2024
d4e6210
chore: upgrade time dependency in stacklibs
hugocaillard Mar 19, 2024
1173e5a
chore: update cargo.lock
hugocaillard Mar 19, 2024
5eb967c
chore: remove unused dependecy p256k1@5.5.0
hugocaillard Mar 20, 2024
ddf2dc8
chore: update clar2wasm
hugocaillard Mar 22, 2024
35cce11
chore: upgrade dependencies
hugocaillard Mar 22, 2024
03eb048
Merge remote-tracking branch 'origin/develop' into feat/clarity-wasm-…
hugocaillard May 7, 2024
a929365
chore: update internal dependencies branch to feat/clarity-wasm-develop
hugocaillard May 7, 2024
e13ba46
chore: update clar2wasm
hugocaillard May 7, 2024
af7f9c7
chore: update clar2wasm and lockfile
hugocaillard May 7, 2024
77fa85a
fix: multiple fixes following the merge of develop
hugocaillard May 7, 2024
101b4c7
fix: remove rusqlite NO_PARAM in stacks-signer
hugocaillard May 7, 2024
a67c57d
chore: upgrade cargo lock
hugocaillard May 7, 2024
f441722
chore: reverse change
hugocaillard May 7, 2024
036bbd9
chore: update cargo.lock
hugocaillard May 7, 2024
9d786f5
code: remove unused duplicated file
hugocaillard May 7, 2024
a70f231
chore: update clar2wasm branch
hugocaillard May 14, 2024
30bc1af
chore: update cargo.lock
hugocaillard May 14, 2024
1807ed0
Merge branch 'develop' into feat/clarity-wasm-develop
hugocaillard Jun 3, 2024
3297c3f
fix: fix merge
hugocaillard Jun 3, 2024
4d1f4f8
fix: cascade previous merge changes to clarity wasm
hugocaillard Jun 3, 2024
cf19e62
chore: update cargo.lock
hugocaillard Jun 3, 2024
03728f1
Merge branch 'develop' into feat/clarity-wasm-develop
hugocaillard Jun 5, 2024
e4f5b88
feat: add GlobalNotFound wasm error
csgui Jun 7, 2024
bbc0c61
feat: remove StackPointerNotFound wasm error
csgui Jun 7, 2024
a0e0fa8
fix: add clarity3 linker functions to clarity_wasm
hugocaillard Jun 7, 2024
198831b
Merge branch 'develop' into feat/clarity-wasm-develop
hugocaillard Jun 7, 2024
a744f29
fix: cascade merge changes
hugocaillard Jun 7, 2024
b0fe27e
fix: update clar2wasm
hugocaillard Jun 7, 2024
379d8ce
refactor: fix merge issue
hugocaillard Jun 7, 2024
0d7452c
chore: cargo fmt
csgui Jun 7, 2024
52a34e3
Merge pull request #4878 from stacks-network/feat/wasm-global-variabl…
csgui Jun 11, 2024
2617d6e
Merge branch 'develop' into feat/clarity-wasm-develop
hugocaillard Jun 24, 2024
34c7f29
fix: add WasmError::StacksPointerNotFound
hugocaillard Jun 24, 2024
c103d83
refactor: remove StackPointerNotFound
hugocaillard Jun 24, 2024
abea0d3
refactor: revert adding 'hook lifetime
hugocaillard Jun 24, 2024
860d7da
chore: update cargo.lock
hugocaillard Jun 24, 2024
5260cfe
Merge branch 'develop' into feat/clarity-wasm-develop
hugocaillard Jul 11, 2024
a65745d
refactor: small fixes after previous merge
hugocaillard Jul 11, 2024
c7cd82f
chore: remove old settings
hugocaillard Jul 11, 2024
55b551b
refactor: favor NO_PARAMS in rusqlite
hugocaillard Jul 11, 2024
7faf458
refactor: favor NO_PARAMS in rusqlite
hugocaillard Jul 11, 2024
a5b3b0c
fix: handle tuple type changes
hugocaillard Jul 12, 2024
33257e8
Merge branch 'develop' into feat/clarity-wasm-develop
hugocaillard Jul 12, 2024
149b667
feat: add constant host interface functions
csgui Jul 12, 2024
1a5cb88
Merge pull request #4962 from stacks-network/feat/constant_host_funct…
csgui Jul 12, 2024
f67a1ba
chore: update cargo.lock
hugocaillard Jul 12, 2024
4556532
fix: (re)remove the time dependency in clarity
hugocaillard Jul 12, 2024
6c382f2
fix: set the flag to make the type-checker store a map of types
obycode Jul 15, 2024
dcd5b4e
Merge pull request #4967 from stacks-network/type-check-map
obycode Jul 15, 2024
eaf1fc8
chore: add clarity-wasm cargo feature
hugocaillard Jul 16, 2024
6de80ff
refactor: feature flag all of
hugocaillard Jul 16, 2024
61e4e45
refactor: revert some changes
hugocaillard Jul 16, 2024
c553f40
chore: runtime-error handling
csgui Jul 17, 2024
d55fa1a
add UnhandledType error
csgui Jul 17, 2024
5e487d4
chore: addressing TODO items
csgui Jul 17, 2024
de93744
chore: addressing comments
csgui Jul 17, 2024
c6c526c
chore: lint
csgui Jul 17, 2024
6eb4a23
Merge pull request #4972 from stacks-network/wasm-todo-addressing
csgui Jul 17, 2024
3daa728
clarity: implement "pass_argument_to_wasm" for string-utf8
Acaccia Jul 16, 2024
00a7a23
clarity: implement "pass_argument_to_wasm" for principal
Acaccia Jul 16, 2024
6f733a4
clarity: implement "pass_argument_to_wasm" for callables
Acaccia Jul 16, 2024
b06b89c
clarity: implement "pass_argument_to_wasm" for tuple
Acaccia Jul 16, 2024
ac21217
fix(clarity-wasm): pass_argument_to_wasm has correct ABI representati…
Acaccia Jul 18, 2024
f7f5877
fix: skip span and other developer-mode properties in symbolic expres…
hugocaillard Jul 19, 2024
1cf3950
ci: increase swapfile for image build
csgui Jul 25, 2024
25305ef
chore: add wasm logging debug
csgui Jul 25, 2024
96d89ed
chore: update Cargo.lock
csgui Jul 25, 2024
381398f
Merge pull request #4979 from stacks-network/feat/finish-pass-argumen…
csgui Jul 25, 2024
36f9445
chore: update Cargo.lock
csgui Jul 25, 2024
630c339
chore: add wasm logging debug
csgui Jul 25, 2024
2bfe0a6
chore: update Cargo.lock
csgui Jul 25, 2024
d09f39b
refactor: use relative path for workspace dependencies
hugocaillard Jul 25, 2024
e8738cb
fix(clarity-wasm): standard principal in-memory should end with 0
Acaccia Jul 25, 2024
216363b
fix(clarity-wasm): miscalculation of contract-call? arguments sizes
Acaccia Jul 25, 2024
ebfbed6
Merge pull request #5012 from stacks-network/fix/wasm-call-contract-p…
Acaccia Jul 25, 2024
03314b1
Merge pull request #5010 from stacks-network/refactor/use-relative-pa…
obycode Jul 25, 2024
3d32241
Merge branch 'develop' into feat/clarity-wasm-develop
obycode Jul 25, 2024
68f687f
fix: remove serde skip for ContractContext wasm_module
hugocaillard Jul 26, 2024
abdd46e
Merge pull request #5013 from stacks-network/chore/clarity-wasm-merge…
wileyj Jul 26, 2024
c27d1ad
Merge branch 'develop' into chore/clarity-wasm-merge-develop
csgui Jul 29, 2024
5a3121a
Merge pull request #5017 from stacks-network/chore/clarity-wasm-merge…
obycode Jul 30, 2024
7160418
Merge branch 'develop' into feat/clarity-wasm-develop
obycode Jul 31, 2024
34c36e8
feat(clarity-wasm): add a linked function for skipping a extra list v…
Acaccia Aug 2, 2024
dd234ae
Merge pull request #5039 from stacks-network/feat/wasm-linked-functio…
Acaccia Aug 2, 2024
d8993c2
Merge branch 'develop' into feat/clarity-wasm-develop
obycode Aug 2, 2024
cbcc7bb
refactor: remove serde skip on symbolic expression
hugocaillard Aug 7, 2024
32366f5
add methods to TypeMap
krl Aug 7, 2024
16919da
Address naming and review comments
Aug 8, 2024
f6fff25
Merge pull request #5059 from stacks-network/clarity-wasm-develop-typ…
krl Aug 8, 2024
5f9c466
Merge branch 'develop' into feat/clarity-wasm-develop
obycode Aug 8, 2024
c3d86cb
fix: wasm linked contract-call? had wrong return type for trait funct…
Acaccia Aug 19, 2024
f97df0d
Merge branch 'develop' into feat/clarity-wasm-develop
obycode Aug 19, 2024
c241855
Merge pull request #5088 from stacks-network/fix/wasm-contract-call-d…
Acaccia Aug 20, 2024
4eaeabe
Merge pull request #5089 from stacks-network/feat/clarity-wasm-develo…
obycode Aug 20, 2024
5f8a390
Merge branch 'develop' into feat/clarity-wasm-develop
obycode Aug 29, 2024
db7040b
fix: update Cargo.lock to match Cargo.toml
obycode Aug 29, 2024
010768a
fix: change linked print signature
matteojug Sep 2, 2024
8d191d9
fix: add all of the required duplicated code
matteojug Sep 9, 2024
a86bb99
Merge pull request #5135 from stacks-network/fix/wasm-print-stub
matteojug Sep 9, 2024
1b15bb4
chore: avoid using testing-gated parse function
matteojug Sep 12, 2024
c3c3af4
Merge pull request #5167 from stacks-network/chore/use-nontesting-par…
matteojug Sep 13, 2024
6cf5fe6
feat: add error mapping for already used arg throw
matteojug Sep 16, 2024
0a282a9
chore: fmt
matteojug Sep 16, 2024
8ad0d2a
Merge pull request #5192 from stacks-network/fix/throw-already-used-a…
matteojug Sep 16, 2024
49e418e
Merge branch 'develop' into chore/clarity-wasm-merge-develop
csgui Sep 25, 2024
9c83c35
Merge pull request #5239 from stacks-network/chore/clarity-wasm-merge…
csgui Oct 7, 2024
167f70f
Merge branch 'develop' into feat/clarity-wasm-develop
obycode Oct 8, 2024
58d2fb2
chore: sync host functions with clarity-wasm implementation
csgui Oct 9, 2024
2d287f0
fix: remove wsts library
csgui Oct 10, 2024
0defc11
Merge pull request #5293 from stacks-network/sync_wasm_host_functions
csgui Oct 10, 2024
5947287
fix: don not use rusqlite in clarity-vm without default features
hugocaillard Oct 10, 2024
829906d
Add stub for `debug_msg` in linker
Oct 10, 2024
0dc3764
spaces instead of tab
Oct 10, 2024
fc2b7a1
Merge pull request #5298 from stacks-network/debug_msg
krl Oct 10, 2024
09f06c9
fix: do not panic! on ErrorMap::Panic
csgui Oct 11, 2024
f6f2a01
Merge pull request #5306 from stacks-network/fix-error-map
csgui Oct 11, 2024
e904e2c
fix: correct error mapping for BadTypeConstruction
csgui Oct 14, 2024
e3130e2
chore: document ErrorMap
csgui Oct 14, 2024
98076ca
Merge pull request #5309 from stacks-network/fix-error-map
csgui Oct 14, 2024
0fff2e0
Merge branch 'develop' into update-clarity-wasm-develop
csgui Oct 15, 2024
dfdf66a
Merge pull request #5316 from stacks-network/update-clarity-wasm-develop
csgui Oct 15, 2024
6c7ddc5
chore: sync with clarity-wasm repo
csgui Oct 17, 2024
25ead94
chore: fmt
csgui Oct 17, 2024
e78e304
fix: add missing dependencies
csgui Oct 18, 2024
39c2e26
chore: fmt
csgui Oct 18, 2024
3dc1ae6
fix: add missing dependency
csgui Oct 18, 2024
93285f7
Merge pull request #5325 from stacks-network/update-clarity-wasm-develop
csgui Oct 18, 2024
dd20238
Merge branch 'develop' into update-clarity-wasm-develop
csgui Oct 18, 2024
bf31352
Merge pull request #5331 from stacks-network/update-clarity-wasm-develop
csgui Oct 18, 2024
1777c16
chore: update Cargo.lock
csgui Oct 21, 2024
38bd7d2
Merge pull request #5339 from stacks-network/update-clarity-wasm-develop
csgui Oct 21, 2024
e944fb1
chore: fix rusqlite dependency path
csgui Oct 21, 2024
10831ee
chore: fmt
csgui Oct 21, 2024
a4925be
Merge pull request #5340 from stacks-network/update-clarity-wasm-develop
csgui Oct 21, 2024
0e59630
Merge tag '3.0.0.0.0' into clarity-wasm-3-0-0-0
csgui Oct 24, 2024
48d4f94
chore: update Cargo.lock
csgui Oct 24, 2024
04c5c77
Merge pull request #5373 from stacks-network/clarity-wasm-3-0-0-0
csgui Oct 24, 2024
186830c
chore: update linnker functions
csgui Oct 25, 2024
74dfc47
chore: sync wasm changes for argument errors
csgui Oct 29, 2024
2b9521c
chore: update Cargo.lock
csgui Oct 29, 2024
66aed1a
chore: fmt
csgui Oct 29, 2024
8ed9026
fix: dependencies
csgui Oct 29, 2024
fd4935c
Merge pull request #5384 from stacks-network/update-linker-functions
csgui Oct 29, 2024
5553ffc
chore: update clarity-wasm
csgui Oct 30, 2024
1c4a48c
chore: update clarity-wasm
csgui Oct 30, 2024
9d6bb86
chore: fmt
csgui Oct 30, 2024
2dfe72a
Merge pull request #5401 from stacks-network/update-clarity-wasm
csgui Oct 30, 2024
54d131d
feat(wasm): use only one `Engine` per global context
ureeves Nov 11, 2024
05467a2
Merge pull request #5447 from ureeves/single-wasmtime-engine
obycode Nov 12, 2024
67dc370
fix: add clarity-wasm feature flag in context
hugocaillard Nov 19, 2024
1eaa34c
refactor: add serde default to symbolic expression struct
hugocaillard Nov 19, 2024
21cabdf
refactor: address review
hugocaillard Nov 20, 2024
81b907c
chore: update clar2wasm dependency
csgui Nov 25, 2024
f7c2ca7
Merge pull request #5503 from stacks-network/chore/update-clar2wasm
csgui Nov 26, 2024
2cacbe4
feat: split get-(burn)-block-info linker function
BowTiedWoo Nov 19, 2024
371153b
fix: pass `Memory` as value
BowTiedWoo Nov 20, 2024
d14106c
feat: wrap in `Optional` return type of validate height function
BowTiedWoo Nov 26, 2024
9d546ec
feat: add linker fn for `get-tenure-info?` and `get-stacks-block-info?`
BowTiedWoo Nov 26, 2024
dea78d2
Merge branch 'develop' into clarity-wasm-merge-develop
hugocaillard Nov 27, 2024
def1ee7
chore: add missing functions to ClarityBackingStore trait
csgui Nov 27, 2024
f9fcc57
chore: add missing dependency
csgui Nov 27, 2024
ef3ef67
chore: add missing trait functions implementations
csgui Nov 27, 2024
5b3ac9d
chore: add missing trait functions implementations
csgui Nov 27, 2024
53f937b
chore: add missing dependency
csgui Nov 27, 2024
b3f7bd0
chore: fmt
csgui Nov 27, 2024
939c650
Merge pull request #5512 from stacks-network/chore/add_missing_functi…
csgui Nov 27, 2024
0431376
Merge pull request #5509 from stacks-network/clarity-wasm-merge-develop
hugocaillard Nov 27, 2024
3144b15
chore: update clarity-wasm dependency
csgui Nov 27, 2024
28c1d9e
Merge pull request #5481 from BowTiedWoo/feat/clarity-wasm-split-get-…
Acaccia Nov 28, 2024
1dc447b
Merge branch 'feat/clarity-wasm-develop' into feat/clarity-wasm-suppo…
BowTiedWoo Nov 28, 2024
00d02a9
fix: remove unused linker functions
BowTiedWoo Nov 28, 2024
80ce707
Merge pull request #5506 from stacks-network/feat/clarity-wasm-suppor…
BowTiedWoo Dec 3, 2024
544e9ab
feat: add serialize to cost synthesis
hugocaillard Dec 5, 2024
0e67220
Merge pull request #5534 from stacks-network/feat/serialize-cost-synt…
hugocaillard Dec 5, 2024
47e2bb7
Merge branch 'develop' into chore/merge-develop
hugocaillard Dec 17, 2024
2ecb92e
Merge pull request #5580 from stacks-network/chore/merge-develop
hugocaillard Dec 17, 2024
560ce12
chore: update Cargo.lock
csgui Dec 18, 2024
92f346a
Merge pull request #5585 from stacks-network/sync-clarity-wasm-main
csgui Dec 18, 2024
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
Prev Previous commit
Next Next commit
chore: upgrade time dependency in stacklibs
  • Loading branch information
hugocaillard committed Mar 19, 2024
commit d4e62103a65d9a75f941fc592a3e7ad9f9d0e1c8
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.

2 changes: 1 addition & 1 deletion stackslib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ version = "=2.0.0"
features = ["serde"]

[dependencies.time]
version = "0.2.23"
version = "0.3.34"
features = ["std"]

[dev-dependencies]
Expand Down
8 changes: 5 additions & 3 deletions stackslib/src/net/http/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use std::collections::{BTreeMap, HashMap, HashSet};
use std::fmt;
use std::io::{Read, Write};
use std::ops::Deref;
use std::time::SystemTime;

use stacks_common::codec::{Error as CodecError, StacksMessageCodec};
use stacks_common::deps_common::httparse;
Expand Down Expand Up @@ -349,8 +348,11 @@ impl HttpResponsePreamble {

/// Get an RFC 7231 date that represents the current time
fn rfc7231_now() -> String {
let now = time::PrimitiveDateTime::from(SystemTime::now());
now.format("%a, %b %-d %-Y %-H:%M:%S GMT")
let now_utc = time::OffsetDateTime::now_utc();
let format = time::macros::format_description!(
"[weekday repr:short], [month repr:short] [day] [year] [hour] [minute] [second] GMT"
);
now_utc.format(&format).unwrap()
}

/// Read from a stream until we see '\r\n\r\n', with the purpose of reading an HTTP preamble.
Expand Down