cargo cleanup; remove wee allocator; license
This commit is contained in:
		
							parent
							
								
									ea488c7eba
								
							
						
					
					
						commit
						1d04a7139f
					
				
					 3 changed files with 6 additions and 18 deletions
				
			
		
							
								
								
									
										14
									
								
								Cargo.toml
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								Cargo.toml
									
										
									
									
									
								
							|  | @ -3,6 +3,9 @@ name = "gpx-web-utils" | |||
| version = "0.0.1" | ||||
| authors = ["Matthew Dillon <matthewrdillon@gmail.com>"] | ||||
| edition = "2018" | ||||
| description = "just some gpx-related tools that i want to use" | ||||
| repository = "https://github.com/thermokarst/gpx-web-utils" | ||||
| license = "MIT" | ||||
| 
 | ||||
| [lib] | ||||
| crate-type = ["cdylib", "rlib"] | ||||
|  | @ -13,19 +16,8 @@ default = ["console_error_panic_hook"] | |||
| [dependencies] | ||||
| wasm-bindgen = "0.2.63" | ||||
| 
 | ||||
| # The `console_error_panic_hook` crate provides better debugging of panics by | ||||
| # logging them with `console.error`. This is great for development, but requires | ||||
| # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for | ||||
| # code size when deploying. | ||||
| console_error_panic_hook = { version = "0.1.6", optional = true } | ||||
| 
 | ||||
| # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size | ||||
| # compared to the default allocator's ~10K. It is slower than the default | ||||
| # allocator, however. | ||||
| # | ||||
| # Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now. | ||||
| wee_alloc = { version = "0.4.5", optional = true } | ||||
| 
 | ||||
| [dev-dependencies] | ||||
| wasm-bindgen-test = "0.3.13" | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										2
									
								
								LICENSE
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								LICENSE
									
										
									
									
									
								
							|  | @ -1,4 +1,4 @@ | |||
| Copyright (c) 2018 Matthew Dillon <matthewrdillon@gmail.com> | ||||
| Copyright (c) 2020 Matthew Dillon <matthewrdillon@gmail.com> | ||||
| 
 | ||||
| Permission is hereby granted, free of charge, to any | ||||
| person obtaining a copy of this software and associated | ||||
|  |  | |||
|  | @ -2,12 +2,6 @@ mod utils; | |||
| 
 | ||||
| use wasm_bindgen::prelude::*; | ||||
| 
 | ||||
| // When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
 | ||||
| // allocator.
 | ||||
| #[cfg(feature = "wee_alloc")] | ||||
| #[global_allocator] | ||||
| static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; | ||||
| 
 | ||||
| #[wasm_bindgen] | ||||
| extern { | ||||
|     fn alert(s: &str); | ||||
|  | @ -15,5 +9,7 @@ extern { | |||
| 
 | ||||
| #[wasm_bindgen] | ||||
| pub fn greet() { | ||||
|     utils::set_panic_hook(); | ||||
| 
 | ||||
|     alert("Hello, gpx-web-utils!"); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue