mirror of
				https://github.com/bspeice/qadapt
				synced 2025-10-31 09:30:37 -04:00 
			
		
		
		
	Prepare for 1.0
This commit is contained in:
		| @ -57,6 +57,8 @@ after_success: | | |||||||
|     if [ -n "$TRAVIS_TAG" ]; then |     if [ -n "$TRAVIS_TAG" ]; then | ||||||
|         cd qadapt-macro && |         cd qadapt-macro && | ||||||
|         cargo publish --token "$CARGO_TOKEN" && |         cargo publish --token "$CARGO_TOKEN" && | ||||||
|  |         cd ../qadapt-spin && | ||||||
|  |         cargo publish --token "$CARGO_TOKEN" && | ||||||
|         cd .. && |         cd .. && | ||||||
|         cargo publish --token "$CARGO_TOKEN" |         cargo publish --token "$CARGO_TOKEN" | ||||||
|     elif [ -n "$CODECOV" ] && [ -z "$TRAVIS_TAG" ]; then |     elif [ -n "$CODECOV" ] && [ -z "$TRAVIS_TAG" ]; then | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| [package] | [package] | ||||||
| name = "qadapt" | name = "qadapt" | ||||||
| version = "0.7.1" | version = "1.0.0" | ||||||
| authors = ["Bradlee Speice <bradlee@speice.io>"] | authors = ["Bradlee Speice <bradlee@speice.io>"] | ||||||
| description = "The Quick And Dirty Allocation Profiling Tool" | description = "The Quick And Dirty Allocation Profiling Tool" | ||||||
| license = "Apache-2.0" | license = "Apache-2.0" | ||||||
| @ -22,8 +22,8 @@ maintenance = { status = "actively-developed" } | |||||||
| libc = "0.2" | libc = "0.2" | ||||||
| thread-id = "3.3" | thread-id = "3.3" | ||||||
|  |  | ||||||
| qadapt-macro = { version = "0.7.1", path = "./qadapt-macro" } | qadapt-macro = { version = "1.0.0", path = "./qadapt-macro" } | ||||||
| qadapt-spin = { version = "0.7.1", path = "./qadapt-spin" } | qadapt-spin = { version = "1.0.0", path = "./qadapt-spin" } | ||||||
|  |  | ||||||
| [dev-dependencies] | [dev-dependencies] | ||||||
| futures = "0.1" | futures = "0.1" | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @ -6,7 +6,7 @@ all: | |||||||
| contributors: | contributors: | ||||||
| 	@echo '`qadapt` is developed by:' > CONTRIBUTORS.md | 	@echo '`qadapt` is developed by:' > CONTRIBUTORS.md | ||||||
| 	@echo '  Bradlee Speice <bradlee@speice.io>' >> CONTRIBUTORS.md | 	@echo '  Bradlee Speice <bradlee@speice.io>' >> CONTRIBUTORS.md | ||||||
| 	@git log --format='  %aN <%aE>' | grep -v "Bradlee Speice <bradlee@speice.io>" | sort -u >> CONTRIBUTORS.md | 	@git log --format='  %aN <%aE>' | grep -v "Bradlee Speice <bradlee@speice.io>" | grep -v "users.noreply" | sort -u >> CONTRIBUTORS.md | ||||||
|  |  | ||||||
| .PHONY: readme README.md | .PHONY: readme README.md | ||||||
| readme: README.md | readme: README.md | ||||||
|  | |||||||
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							| @ -39,10 +39,22 @@ After that, there are two ways of telling QADAPT that it should trigger a panic: | |||||||
| ```rust,no_run | ```rust,no_run | ||||||
| use qadapt::no_alloc; | use qadapt::no_alloc; | ||||||
|  |  | ||||||
|  | // This function is fine, there are no allocations here | ||||||
| #[no_alloc] | #[no_alloc] | ||||||
| fn do_math() -> u8 { | fn do_math() -> u8 { | ||||||
|     2 + 2 |     2 + 2 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // This function will trigger a panic when called | ||||||
|  | #[no_alloc] | ||||||
|  | fn does_panic() -> Box<u32> { | ||||||
|  |     Box::new(5) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | fn main() { | ||||||
|  |     do_math(); | ||||||
|  |     does_panic(); | ||||||
|  | } | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| 2. Evaluate expressions with the `assert_no_alloc!` macro | 2. Evaluate expressions with the `assert_no_alloc!` macro | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| [package] | [package] | ||||||
| name = "qadapt-macro" | name = "qadapt-macro" | ||||||
| version = "0.7.1" | version = "1.0.0" | ||||||
| authors = ["Bradlee Speice <bradlee@speice.io>"] | authors = ["Bradlee Speice <bradlee@speice.io>"] | ||||||
| description = "The Quick And Dirty Allocation Profiling Tool - Support Macros" | description = "The Quick And Dirty Allocation Profiling Tool - Support Macros" | ||||||
| license = "Apache-2.0" | license = "Apache-2.0" | ||||||
|  | |||||||
| @ -3,7 +3,7 @@ | |||||||
| [](https://crates.io/crates/qadapt-macro) | [](https://crates.io/crates/qadapt-macro) | ||||||
| [](https://docs.rs/qadapt-macro/) | [](https://docs.rs/qadapt-macro/) | ||||||
|  |  | ||||||
| Helper macros to use with the QADAPT allocator system | Helper macro for the QADAPT allocator. | ||||||
|  |  | ||||||
| This crate is intended for managing the QADAPT allocator, | This crate is intended for managing the QADAPT allocator, | ||||||
| and is unusable on its own. | and is unusable on its own. | ||||||
| @ -1,7 +1,7 @@ | |||||||
| [package] | [package] | ||||||
|  |  | ||||||
| name = "qadapt-spin" | name = "qadapt-spin" | ||||||
| version = "0.7.1" | version = "1.0.0" | ||||||
| authors = [ "Mathijs van de Nes <git@mathijs.vd-nes.nl>", | authors = [ "Mathijs van de Nes <git@mathijs.vd-nes.nl>", | ||||||
|             "John Ericson <John_Ericson@Yahoo.com>" ] |             "John Ericson <John_Ericson@Yahoo.com>" ] | ||||||
| license = "MIT" | license = "MIT" | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| qadapt-spin | qadapt-spin | ||||||
| =========== | =========== | ||||||
|  |  | ||||||
| Placeholder for the [`spin-rs`](https://github.com/mvdnes/spin-rs) | Placeholder for a stable-compatible [`spin-rs`](https://github.com/mvdnes/spin-rs) crate. | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user