Commit graph

52 commits

Author SHA1 Message Date
Victor Martinez
cb6ddf7356 chore: update patch version 2024-02-26 09:59:45 +01:00
Víctor Martínez
eb28f20c39
Merge pull request #34 from JasterV/refactor/cargo-workspace
[Refactor] Cargo workspace
2024-02-26 00:30:42 +01:00
Victor Martinez
58faeefa63 chore: update workspace properties 2024-02-26 00:27:59 +01:00
Victor Martinez
3539bcdd6d refactor: restructure the workspace members organization 2024-02-26 00:19:53 +01:00
Víctor Martínez
1e161bcd46
Merge pull request #33 from JasterV/chore/update-package-information
chore: update crate information
2024-02-25 23:43:41 +01:00
Victor Martinez
352be5dc90 chore: update crate information 2024-02-25 23:43:19 +01:00
Víctor Martínez
bd43160d42
Merge pull request #31 from JasterV/fix/doc-tests-clippy-error
fix: clippy unit test on doctests warnings
2024-02-25 23:35:02 +01:00
Victor Martinez
08f85ee2a1 fix: clippy unit test on doctests warnings 2024-02-25 23:29:18 +01:00
Víctor Martínez
ed0ecb319f
Merge pull request #29 from JasterV/dependabot/cargo/syn-tw-2
Update syn requirement from ^1 to ^2
2024-02-25 23:21:58 +01:00
Víctor Martínez
5b6c44d5b4
Merge branch 'main' into dependabot/cargo/syn-tw-2 2024-02-25 23:21:49 +01:00
Víctor Martínez
be4dd4e39c
Merge pull request #23 from yotamofek/syn2
Update syn to 2.x
2024-02-25 23:21:30 +01:00
Víctor Martínez
1c1f506f56
Merge branch 'main' into syn2 2024-02-25 23:20:20 +01:00
dependabot[bot]
76b18ec7d9
Update syn requirement from ^1 to ^2
Updates the requirements on [syn](https://github.com/dtolnay/syn) to permit the latest version.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.0...2.0.50)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-25 22:19:46 +00:00
Víctor Martínez
330f938110
Merge pull request #30 from JasterV/chore/update-to-2021-edition
chore: update to 2021 rust edition
2024-02-25 23:19:12 +01:00
Victor Martinez
8a2f5895db chore: update to 2021 rust edition 2024-02-25 23:18:26 +01:00
Víctor Martínez
0180c24783
Merge pull request #28 from JasterV/JasterV-patch-1
chore: Enable Dependabot
2024-02-25 23:15:37 +01:00
Víctor Martínez
55a0b96747
Create dependabot.yml 2024-02-25 23:13:20 +01:00
Víctor Martínez
ed6a0180a7
Merge branch 'main' into syn2 2024-02-25 23:11:33 +01:00
Víctor Martínez
f0eab448f8
Merge pull request #27 from JasterV/JasterV-patch-1
Update README.md
2024-02-25 23:11:12 +01:00
Víctor Martínez
b3a7975253
Update README.md 2024-02-25 23:10:57 +01:00
Mark Hildreth
4814198ca2
Update README.md 2024-02-25 15:03:12 -05:00
Yotam Ofek
ec15b395b0 Update syn 2023-12-31 08:51:55 +00:00
Mark Hildreth
2573779967
Merge pull request #19 from SomeoneToIgnore/patch-1
Use proper World capitalization in the main example
2023-03-29 17:30:18 -04:00
Kirill Bulatov
8a40f16a34
Use proper World capitalization in the main example 2023-03-28 17:20:03 +03:00
Mark Hildreth
b22fcb72f5
Merge pull request #17 from markhildreth/bump-to-0.1.4
Bumped to 0.1.4
2022-07-19 16:29:14 -04:00
Mark Hildreth
e77ed125dc Bumped to 0.1.4 2022-07-19 16:24:32 -04:00
Mark Hildreth
741f718984
Merge pull request #16 from markhildreth/use-original-argument-list
Copy original argument list directly from input token stream.
2022-07-19 15:49:54 -04:00
Mark Hildreth
86dc894390 Copy original argument list directly from input token stream.
The prior version would hard-code the argument for the wrapped function
with an argument "ctx" and the type used for the context. As pointed out
in issue 14 (https://github.com/markhildreth/test-context/issues/14),
this means that the argument name for the context is hard-coded to
"ctx".

Note that this is a breaking change. For example, the following code
might have compiled prior, but now would raise an error:

```
fn test(ctx: &mut IncorrectName) {...}
```

Since "IncorrectName" is now actually going to be used in the wrapper
function argument list, a different error (most likely "cannot find type
in this scope") will be given instead.

As this library is using the major zero version, I'm okay making this
breaking change.
2022-07-19 15:46:59 -04:00
Mark Hildreth
e1b05b2f7e
Merge pull request #11 from markhildreth/bump-to-0.1.3
Bumped to v0.1.3
2021-02-27 17:10:19 -05:00
Mark Hildreth
09808630f1 Bumped to v0.1.3 2021-02-27 17:08:32 -05:00
Mark Hildreth
121982ef72
Merge pull request #10 from markhildreth/add-sync-async-impl-docs
Documented behavior of AsyncContext with normal function.
2021-02-23 21:06:53 -05:00
Mark Hildreth
90a3c615ed Documented behavior of AsyncContext with normal function. 2021-02-23 21:02:12 -05:00
Mark Hildreth
f07f348c44
Merge pull request #9 from Shadow53/impl-sync-for-async
add basic impl TestContext for AsyncTestContext
2021-02-23 20:39:46 -05:00
Michael Bryant
de4b7255ea
run cargo fmt 2021-02-21 17:33:27 -08:00
Michael Bryant
8d349b6f0c
add basic impl TestContext for AsyncTestContext 2021-02-21 17:30:31 -08:00
Mark Hildreth
c55eed5464
Merge pull request #7 from markhildreth/bump-to-0.1.2
Bumped to version v0.1.2
2021-02-07 00:15:11 -05:00
Mark Hildreth
429611eb0a Bumped to version v0.1.2 2021-02-07 00:13:22 -05:00
Mark Hildreth
48d3f0271c
Merge pull request #6 from markhildreth/badges
Added badges
2021-02-07 00:10:23 -05:00
Mark Hildreth
fe1175e1fa Added badges 2021-02-07 00:08:29 -05:00
Mark Hildreth
c791dd078e
Merge pull request #5 from markhildreth/fixed-typo
Fixed typo in documentation
2021-02-06 23:51:45 -05:00
Mark Hildreth
3eb23d929d
Merge branch 'main' into fixed-typo 2021-02-06 23:50:15 -05:00
Mark Hildreth
5edf65b78e
Merge pull request #4 from markhildreth/future-dependency
Forced futures to be imported through test_context crate.
2021-02-06 23:49:59 -05:00
Mark Hildreth
4e3f4ca759 Fixed typo in documentation 2021-02-06 23:48:26 -05:00
Mark Hildreth
be1e4a9178 Forced futures to be imported through test_context crate.
By exporting the futures crate through the test_context crate, the code
generated by the macro can rely on `test_context` to access the future
crate. Otherwise, the code generated which requires access to the
"future" crate would end up residing in the code of a user of the
library, giving them `use of undeclared crate or module "future"`
error messages unless they added future as a dependency.
2021-02-06 23:44:33 -05:00
Mark Hildreth
0d78b70786
Merge pull request #3 from markhildreth/v0.1.1
Bumped to version v0.1.1
2021-01-17 22:27:27 -05:00
Mark Hildreth
feef82bae7 Bumped to version v0.1.1 2021-01-17 22:23:03 -05:00
Mark Hildreth
459cb95388
Merge pull request #2 from markhildreth/github-workflows
Updated github ci.yml
2021-01-17 22:19:52 -05:00
Mark Hildreth
239b639a9b Updated github ci.yml 2021-01-17 22:15:43 -05:00
Mark Hildreth
b3734c3d94
Merge pull request #1 from markhildreth/allow-returns
Allow return of wrapped functions value.
2021-01-17 22:07:34 -05:00
Mark Hildreth
418ed39c1e Allow return of wrapped functions value.
This allows the macro to return the value of the function being
annotated. For most testing, this probably shouldn't matter, but
considering it's simple enough to do I decided to add it in in case any
other test wrappers require it.
2021-01-17 22:02:19 -05:00